-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathindex.html
More file actions
49 lines (48 loc) · 1.54 KB
/
index.html
File metadata and controls
49 lines (48 loc) · 1.54 KB
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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>PHP Crud Application</title>
<link rel="stylesheet" href="css/bootstrap.min.css">
<link rel="stylesheet" href="css/styles.css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
</head>
<body>
<div class="container">
<div class="index">
<img src="img/login.png" alt="logo">
<form >
<div class="form-input">
<input type="text" name="username" placeholder="Username" id="username">
</div>
<div class="form-input">
<input type="password" name="password" placeholder="Password" id="password">
</div>
<input type="button" name="submit" value="LOGIN" class="btn-login" onclick="validate()"> <br>
<a href="#">Forgot Password ?</a>
</form>
</div>
</div>
<script type="text/javascript">
function validate()
{
if(document.getElementById("username").value=="admin" &&
document.getElementById("password").value=="admin")
{
alert ("Login Successfull");
window.location='dashboard.php';
return false;
}
else
{
alert("Invalid Credentials, try again.");
location.href="index.html";
}
}
</script>
<script src="js/jquery.min.js"></script>
<script src="js/bootstrap.min.js"></script>
</body>
</html>