-
Notifications
You must be signed in to change notification settings - Fork 1
/
wlogin.php
86 lines (77 loc) · 2.31 KB
/
wlogin.php
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
<?php
include "connect.php";
session_start();
if(isset($_SESSION['u_name'])){
echo '
<script type = "text/javascript">
alert("ALREADY LOGED-IN");
window.location = "index.php";
</script>
';
} else {
require_once "header1.php";
?>
<!--header//--><head>
<script>
function showResult(str) {
if (str.length==0) {
document.getElementById("livesearch").innerHTML="";
document.getElementById("livesearch").style.border="0px";
return;
}
if (window.XMLHttpRequest) {
// code for IE7+, Firefox, Chrome, Opera, Safari
xmlhttp=new XMLHttpRequest();
} else { // code for IE6, IE5
xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
}
xmlhttp.onreadystatechange=function() {
if (this.readyState==4 && this.status==200) {
document.getElementById("livesearch").innerHTML=this.responseText;
document.getElementById("livesearch").style.border="0px solid #A5ACB2";
}
}
xmlhttp.open("GET","validation.php?u_name="+str,true);
xmlhttp.open("GET","validation.php?password="+str,true);
xmlhttp.send();
xmlhttp.send();
}
</script>
</head>
<div class="login">
<div class="container">
<ol class="breadcrumb">
<li><a href="index.html">Home</a></li>
<li class="active">Login</li>
</ol>
<h2>Login</h2>
<div class="col-md-6 log">
<p>Welcome, please enter the following details to continue.</p>
<form action="validation.php" method="post">
<h5>User Name:</h5>
<input type="text" value="" name="u_name"required="" >
<div id="livesearch"></div>
<h5>Password:</h5>
<input type="password" value="" name="password"required="" >
<div id="password"></div>
<input type="submit" value="Login" onkeyup="showResult(this.value)">
<div id="livesearch"></div>
WORNG USER ID OR PASSWORD!!!
</form>
</div>
<div class="col-md-6 login-right">
<h3>NEW REGISTRATION</h3>
<p>By creating an account with our store, you will be able to move through the checkout process faster, store multiple shipping addresses, view and track your orders in your account and more.</p>
<a class="acount-btn" href="registration.php">Create an Account</a>
</div>
<div class="clearfix"></div>
</div>
</div>
<!--fotter-->
<?php
require_once "men_footer.php";
}
?>
<!--fotter//-->
</body>
</html>