-
Notifications
You must be signed in to change notification settings - Fork 18
/
index.php
42 lines (40 loc) · 1.1 KB
/
index.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
<!DOCTYPE html>
<html>
<head>
<title>
Blood Bank Management System
</title>
<link rel="stylesheet" type="text/css" href="css/index.css">
<link rel="icon" type="image/x-icon" href="favicon.ico" />
</head>
<body>
<div class="title">
<center>
<img src="res/images/logo.png" height = "100" width="100" align="top">
<h1>BLOOD BANK MANAGEMENT SYSTEM</h1><br>
</center>
</div>
<form name="f1" action = "login.php" method = "POST">
<h2>Login</h2>
<?php
session_start();
if(isset($_SESSION["login_error"])){
echo "<p class='error'>" .$_SESSION["login_error"]. "</p>";
unset($_SESSION["login_error"]);
}
?>
<p>
<label> UserName: </label><br><br>
<input type = "text" class ="input" name = "user" placeholder="Enter UserName" required />
</p>
<p>
<label> Password: </label>
<br><br>
<input type = "password" class="input" name = "pass" placeholder="Enter password" required />
</p>
<p>
<input type ="submit" id = "btn" value = "Login" name="submit"/>
</p>
</form>
</body>
</html>