-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathas_doc.php
88 lines (81 loc) · 1.85 KB
/
as_doc.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
87
88
<?php
session_start();
//$_SESSION["login"]="Doctor";
?>
<!DOCTYPE html>
<html>
<head>
<style>
html {
background: linear-gradient(to left, rgba(204,255,255,0.3), rgba(150,153,255,0.7));
}
label{
float: center;
width:200px;
display:inline-block;
text-align:right;
clear:center;
font-size:28px;
}
input[type=submit]{
width: 180px; height: 40px;
font-size: 30px;
opacity: 0.8;
}
::-webkit-input-placeholder {
font-size: 20px;
}
input {
display:inline-block;
width:350px;
height:50px;
font-size: 28px;
float:center;
border-radius: 10px;
padding: 2px;
opacity: 0.5;
}
</style>
</head>
<body>
<br><br><br><br><br><br>
<form>
<div>
<center>
<span id='3' style="color: red"></span>
<br>
<label>USER ID:</label>
<input type="text" class="iop" name="firstname" id='1' placeholder=" Enter LICENSE NUMBER" required>
<br><br>
<label>PASSWORD:</label>
<input type="password" class="iop" name="lastname" id='2' placeholder=" Enter Password" required>
<br><br>
<input type="button" id="uni" value="SUBMIT" style="text-align: center" onclick="f();">
</center>
</div>
</form>
<script>
function f(){
var xml=new XMLHttpRequest();
var a=document.getElementById('1').value;
var b=document.getElementById('2').value;
xml.onreadystatechange=function(){
if(this.readyState==4 && this.status==200){
if(this.responseText==1){
//document.write('//2');
//document.getElementById('3').innerHTML=this.responseText;
document.getElementById('3').innerHTML="*Incorrect Username or Password";
//document.getElementById('3').style.display=inline-block;
}
if(this.responseText==2){
//header("Location: doctor_login1.php");
window.top.location.href = "doctor_login1.php";
}
}
};
xml.open("POST","checkdoc.php?firstname="+a+"&lastname="+b,true);
xml.send();
}
</script>
</body>
</html>