-
Notifications
You must be signed in to change notification settings - Fork 0
/
admin.html
49 lines (36 loc) · 1.29 KB
/
admin.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
<html>
<head>
<title>Admin Login</title>
<link href="style.css" rel="stylesheet">
<script>
function validate_form()
{
var usr= document.getElementById('usr-name').value;
var pass= document.getElementById('passwd').value;
if(usr=="")
{ document.getElementById('error-container').innerHTML= "User name can't be empty";
return false;
}
if(pass=="")
{ document.getElementById('error-container').innerHTML= "Password can't be empty";
return false;
}
}
</script>
</head>
<body>
<div class="page-container">
<div class="form-container" id="container-1">
<h2>Sign In</h2>
<span class="error-container" id="error-container"></span>
<form action="AdminServlet" method="post">
<label>Username:</label><br>
<input type="text" name="Username" id="usr-name"><br><br>
<label>Password:</label><br>
<input type="text" name="Password" id="passwd"><br><br>
<button onclick="return validate_form();" class="btn" type="submit" id="login">LOGIN</button>
</form>
</div>
</div>
</body>
</html>