-
Notifications
You must be signed in to change notification settings - Fork 0
/
forgot-password.php
69 lines (68 loc) · 2.87 KB
/
forgot-password.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
<?php require_once "controllerUserData.php"; ?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" type="image/x-icon" href="imgs/favicon.ico" />
<title>Forgot Password</title>
<link rel="stylesheet" href="styles/navbar.css"/>
<link rel="stylesheet" href="styles/login.css"/>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.2.1/css/all.min.css"/>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css">
<link href='https://fonts.googleapis.com/css?family=Roboto' rel='stylesheet'>
<script src="backbutton.js" defer></script>
</head>
<body>
<nav>
<input type="checkbox" id="check">
<label for="check" class="checkbtn">
<i class="fas fa-bars"></i>
</label>
<a href= "index.php" class="logo">Project ΚαΠα <img class="logo_image" src="imgs/logo.png" > </a>
<ul>
<li><a href="achivs.php">About</a></li>
<li><a href="./quiz/education.php">Education</a></li>
<li><a href="calendar.php">Calendar</a></li>
<li><a href="map_page.php">Services</a></li>
<?php
if (isset($_SESSION['email'])) {
echo '<li><a href="dashboard.php">Profile</a></li>';
} else {
echo '<li><a href="login-user.php">Login/Register</a></li>';
}
?>
</ul>
</nav>
<div class="container">
<div class="row">
<div class="col-md-4 offset-md-4 form">
<form action="forgot-password.php" method="POST" autocomplete="">
<h2 class="text-center">Forgot Password</h2>
<p class="text-center">Enter your email address</p>
<?php
if(count($errors) > 0){
?>
<div class="alert alert-danger text-center">
<?php
foreach($errors as $error){
echo $error;
}
?>
</div>
<?php
}
?>
<div class="form-group">
<input class="form-control" type="email" name="email" placeholder="Enter email address" required value="<?php echo $email ?>">
</div>
<div class="form-group">
<input class="form-control button" type="submit" name="check-email" value="Continue">
</div>
</form>
</div>
</div>
</div>
</body>
</html>