-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathedit.php
More file actions
70 lines (69 loc) · 3.31 KB
/
Copy pathedit.php
File metadata and controls
70 lines (69 loc) · 3.31 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
<?php
session_start();
if (isset($_SESSION['position'])) {
if($_SESSION['position']=='ADMIN') {
include 'navbar.html';
}else{
echo "<meta http-equiv='refresh' content='0;url=login.php'>";
}
}else{
echo "<meta http-equiv='refresh' content='0;url=login.php'>";
}
?>
<!DOCTYPE html>
<html>
<head>
<title>User Registration Form</title>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css">
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
<script src="js/edit.js"></script></head>
<body>
<div class="container">
<div class="row justify-content-center mt-5">
<div class="col-md-6">
<h2 class="text-center">User Registration</h2>
<form id="registrationForm">
<div class="mb-3">
<label for="firstname" class="form-label">First Name</label>
<input type="text" class="form-control" id="firstname" placeholder="Enter first name" required>
</div>
<div class="mb-3">
<label for="lastname" class="form-label">Last Name</label>
<input type="text" class="form-control" id="lastname" placeholder="Enter last name" required>
</div>
<div class="mb-3">
<label for="username" class="form-label">Username</label>
<input type="text" class="form-control" id="username" placeholder="Enter username" required>
</div>
<div class="mb-3">
<label for="password" class="form-label" id="valid">Password</label>
<input type="password" class="form-control" id="password" placeholder="Enter password" required>
</div>
<div class="mb-3">
<label for="cpassword" class="form-label" id="cvalid">Confirm Password</label>
<input type="password" class="form-control" id="cpassword" placeholder="Re-type password" required>
</div>
<div class="mb-3">
<label for="position" class="form-label">Position</label>
<select class="form-control" id="position" required>
<option value="" selected disabled>Select a position</option>
<option value="CEO">CEO</option>
<option value="CFO">CFO</option>
<option value="CISO">CISO</option>
<option value="CTO">CTO</option>
<option value="CIO">CIO</option>
<option value="PO">PO</option>
<option value="CPO">CPO</option>
<option value="P">P</option>
</select>
</div>
<div class="d-grid">
<button type="submit" class="btn btn-primary">Register</button>
</div>
</form>
</div>
</div>
</div>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/5.3.0/js/bootstrap.bundle.min.js"></script>
</body>
</html>