-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.php
73 lines (60 loc) · 2.83 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
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
71
72
73
<!DOCTYPE html>
<html lang="en">
<?php include __DIR__ . "/templates/head.php";
// Check if the user is already logged in, if yes then redirect them to homepage
if (isset($_SESSION["LoggedInUser"]) && $_SESSION["LoggedInUser"] === true) {
header("location: ./home.php");
exit;
}
?>
<header>
<!-- Navbar -->
<nav class="navbar navbar-expand-lg navbar-dark bg-dark p-3">
<a class="navbar-brand">Welcome to Hotels48 South Africa!</a>
</nav>
<!-- Navbar END -->
</header>
<body>
<h1 class="text-center">Register or Login</h1>
<div class="container text-center">
<div class="row">
<div class="col-lg-6">Register:
<form action="./processes/process-register.php" method="post">
<div class="mb-3">
<label for="RegInputName" class="form-label">Name*</label>
<input type="text" name="RegInputName" class="form-control" id="RegInputName" required>
</div>
<div class="mb-3">
<label for="RegInputSurname" class="form-label">Surname</label>
<input type="text" name="RegInputSurname" class="form-control" id="RegInputSurname">
</div>
<div class="mb-3">
<label for="RegInputEmail" class="form-label">Email*</label>
<input type="email" name="RegInputEmail" class="form-control" id="RegInputEmail" required>
</div>
<div class="mb-3">
<label for="RegInputPassword" class="form-label">Password*</label>
<input type="password" name="RegInputPassword" class="form-control" id="RegInputPassword" required>
</div>
<button type="submit" name='Submit' class="btn btn-dark">Submit</button>
</form>
</div>
<div class="col-lg-6">Customer/Staff Login:
<form action="./processes/process-login.php" method="post">
<div class="mb-3">
<label for="InputEmail" class="form-label">Email*</label>
<input type="email" class="form-control" name="LoginEmail" id="InputEmail" required>
</div>
<div class="mb-3">
<label for="InputPassword" class="form-label">Password*</label>
<input type="password" class="form-control" name="LoginPassword" id="InputPassword" required>
</div>
<button type="submit" class="btn btn-dark">Submit</button>
</form>
</div>
</div>
<p>* Indicates required field</p>
</div>
<?php include __DIR__ . "/templates/footer.php"; ?>
</body>
</html>