-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
51 lines (41 loc) · 1.88 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
<?php
include "includes/config.php";
session_start();
if (isset($_SESSION["user_email"])) {
header("Location: todos.php");
die();
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<?php gethead() ?>
</head>
<body>
<div class="container col-xl-10 col-xxl-8 px-4 py-5">
<div class="row align-items-center g-lg-5 py-5">
<div class="col-lg-7 text-center text-lg-start">
<h1 class="display-4 fw-bold lh-1 mb-3">Signup to store your Todos</h1>
<p class="col-lg-10 fs-4">Create free account to manage your todos</p>
</div>
<div class="col-md-10 mx-auto col-lg-5">
<form action="login.php" method="post" class="p-4 p-md-5 border rounded-3 bg-light">
<div class="form-floating mb-3">
<input type="email" class="form-control" id="floatingInput" placeholder="Email Address" name="email" required>
<label for="floatingInput">Email address</label>
</div>
<div class="form-floating mb-3">
<input type="password" class="form-control" id="floatingPassword" placeholder="Password" name="password" required>
<label for="floatingPassword">Password</label>
</div>
<button class="w-100 btn btn-lg btn-primary" name="submit" type="submit">Continue</button>
<hr class="my-4">
<small class="text-muted">By clicking Sign up, you agree to the terms of use.</small>
</form>
</div>
</div>
</div>
<script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.9.2/dist/umd/popper.min.js" integrity="sha384-IQsoLXl5PILFhosVNubq5LC7Qb9DXgDA9i+tQ8Zj3iwWAwPtgFTxbJ8NT4GN1R8p" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/js/bootstrap.min.js" integrity="sha384-cVKIPhGWiC2Al4u+LWgxfKTRIcfu0JTxR+EQDz/bgldoEyl4H0zUF0QKbrJ0EcQF" crossorigin="anonymous"></script>
</body>
</html>