-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
43 lines (43 loc) · 1.41 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
<html>
<head>
<title>BO THRISSUR</title>
</head>
<title>Staff Login</title>
<link rel="stylesheet" type="text/css" href="global.css">
<body>
<div class="loginbox" id="frm">
<img src="avatar.png" class="avatar">
<h0>BO THRISSUR</h0>
<h1>Login Here</h1>
<form action = "authentication.php" onsubmit = "return validation()" method = "POST">
<p>Username</p>
<input type="text" name="user" id="username" placeholder="Enter Username">
<p>Password</p>
<input type="password" name="pass" id="pass" placeholder="Enter Password">
<input type="submit" id="btn" value="Login">
</form>
</div>
<script>
function validation()
{
var id=document.f1.user.value;
var ps=document.f1.pass.value;
if(id.length=="" && ps.length=="") {
alert("User Name and Password fields are empty");
return false;
}
else
{
if(id.length=="") {
alert("User Name is empty");
return false;
}
if (ps.length=="") {
alert("Password field is empty");
return false;
}
}
}
</script>
</body>
</html>