-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
95 lines (63 loc) · 2.05 KB
/
index.php
File metadata and controls
95 lines (63 loc) · 2.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>PHP| MySQL | Vue.js | Axios</title>
<script src="https://cdn.jsdelivr.net/npm/vue"></script>
<script src="https://unpkg.com/axios/dist/axios.min.js"></script>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js" integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous"></script>
<script type="text/javascript" src="js/jquery-1.11.3.min.js"></script>
<script>
var app = new Vue({
el: '#vueapp',
data: {
email: '',
password: '',
},
mounted: function () {
console.log('Hello from Vue!')
// this.getContacts()
},
methods: {
login: function(){
}
}
})
function login(){
email = $("#email").val();
password = $("#password").val();
$.post("./core/log.php",{email:email,password:password},function(data){
var respuesta= $('<div />').html(data);
$("#cont").html(respuesta.find('#con'));
},'html');
}
</script>
<style>
body {text-align:center}
div#contenedor {text-align:left;}
div#contenedor {
width:1200px;
position:absolute;
left:50%;
margin-left:-600px;
}
</style>
</head>
<body>
<div id="contenedor">
<form action="core/log.php">
<table>
<tr><td> <label>Email</label></td>
<td> <input type="email" id="email" name="email" v-model="email">
</td></tr>
<tr>
<td><label>Password</label></td>
<td><input type="password" id="password" name="password" v-model="password">
</td></tr>
<tr><td><button type="submit">Login</button></td><td><a href="nuevo.php">Nuevo ususario</a></td></tr>
</table>
</div>
</body>
</html>