-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
110 lines (68 loc) · 1.72 KB
/
index.html
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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
<!DOCTYPE html>
<html>
<head>
<title>Login</title>
<meta name="viewport" content="width=device-width,initial-scale=1">
<link rel="stylesheet" href="css/jquery.mobile.structure-1.1.1.css" />
<link rel="stylesheet" type="text/css" href="css/ThisIsIt.css">
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/jquery.mobile-1.1.1.min.js"></script>
<style ="text/css">
body
{
background-color: "white";
}
</style>
<script type="text/javascript">
$(document).ready(function(){
$("#email").keyup(function(){
});
$("#submit").click(function(){
$.post("http://10.0.2.2/SERVER/auth.php",$("#form1").serialize(),function(result){
if(result =="Invalid username or/and password. Try again.")
{
$("#result").html(result);
window.location.reload();
}
else
{
window.location="home.html";
}
});
});
$("#rem").change(function(){
});
});
</script>
</head>
<body>
<div data-role="page">
<div data-role="header" font-size="32px">
<p align="center"><b>MADAPP LOGIN</b></p>
</div>
<div data-theme="a" data-role="content" id="content">
<table align="center">
<form action="" method="post" id="form1">
<tr>
<td><b>Email</b></td><td><input type="text" name="email" id="email"></td>
</tr>
<tr>
<td><b>Password</b></td><td><input type="password" name="pwd" ></td>
</tr>
<tr>
<td><br><br>RememberMe</td><td> <input type="checkbox" name="rem" value="0" id="rem" style="height:50px;width:50px;"></td>
</tr>
<tr>
<td><a href="forgot_pwd.html">ForgotPassword?</a></td><td></td>
</tr>
<tr >
<td></td>
<td><input type="submit" value="Login" id="submit"></td>
</tr>
</form>
</table>
<div id="result"></div>
</div>
</div>
</body>
</html>