-
Notifications
You must be signed in to change notification settings - Fork 0
/
admin_reg_form.php
57 lines (54 loc) · 1.34 KB
/
admin_reg_form.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
<?php
//echo "<button><a href='logout.php'><b>Log Out</b></a></button></br></br>";
//include('server.php');
session_start();
if(isset($_SESSION['user']))
{
//echo "I am an Admin";
}
else
{
header("location:login.php");
}
?>
<!DOCTYPE html>
<html>
<head>
<title>Registration system PHP and MySQL</title>
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>
<div class="header">
<h2>Register</h2>
</div>
<form method="post" action="admin_reg_check.php?value=admin">
<?php //include('errors.php'); ?>
<div class="input-group">
<label>Admin Id</label>
<input type="text" name="admin_id" value="<?php //echo $username; ?>">
</div>
<div class="input-group">
<label>Admin Name</label>
<input type="text" name="admin_name" value="<?php //echo $email; ?>">
</div>
<div class="input-group">
<label>Email</label>
<input type="email" name="admin_email" value="<?php //echo $email; ?>">
</div>
<div class="input-group">
<label>Password</label>
<input type="password" name="password_1">
</div>
<div class="input-group">
<label>Confirm password</label>
<input type="password" name="password_2">
</div>
<div class="input-group">
<button type="submit" class="btn" name="reg_user">Register</button>
</div>
<p>
Already a member? <a href="login.php">Sign in</a>
</p>
</form>
</body>
</html>