-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
38 lines (31 loc) · 1.25 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
<?php
$error="";
if($_SERVER["REQUEST_METHOD"] == "POST") {
if(isset($_POST['user_type'])){
$user_type = $_POST['user_type'];
header('location: login.php?user_type='.$user_type);
}
else
$error="Please Select one of the User Type!";
}
?>
<html>
<head>
<!--<meta charset="UTF-8">-->
<meta http-equiv="Content-Language" content="hi">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Entering in Session</title>
<link rel="stylesheet" type="text/css" href="css/session_entry.css">
</head>
<body align="center" >
<center><h1>CAZRI Nursery</h1></center>
<center><div class="img"><img src="img/img11.png"></div></center>
<div align="center">
<form action="" method="POST">
<div class="left"><nav><label><img src="img/11.png"><br><input type="radio" name="user_type" value="verifying_officer"> Admin</label></nav><br></div>
<div class="right"> <nav><label><img src="img/123.jpg"><br><input type="radio" name="user_type" value="entry_level"> Entry Level</label></nav><br></div>
<button type="submit">Enter</button>
</form>
<div style = "font-size:15px; color:#cc0000; margin-top:10px"><?php echo $error; ?></div>
</body>
</html>