-
Notifications
You must be signed in to change notification settings - Fork 42
/
index.php
31 lines (31 loc) · 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
<?php
$login_code= isset($_REQUEST['login']) ? $_REQUEST['login'] : '1';
if($login_code=="false"){
$login_message="Wrong Credentials !";
$color="red";
}
else{
$login_message="Please Login !";
$color="green";
}
?>
<!DOCTYPE html>
<html >
<head>
<meta charset="UTF-8">
<script src="source/js/loginValidate.js"></script>
<title>School Management System</title>
</head>
<body>
<center>
<img src="source/logo.jpg" />
<hr/>
<?php echo "<font size='4' color='$color'>$login_message</font>";?>
<form action="service/check.access.php" onsubmit="return loginValidate();" method="post"><br/>
<input type="text" id="myid" name="myid" placeholder="your id" autofocus="" /><br/><br/><br/>
<input type="password" id="mypassword" name="mypassword" placeholder="your password" /><br/><br/><br/>
<input type="submit" value="Login" />
</form>
</center>
</body>
</html>