-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathforgot_password.php
41 lines (38 loc) · 1.39 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
<?php
$message = '';
if (isset($_POST['email'])) {
$email = $_POST["email"];
// send a reset link to $email
// header('location: login.php');
$message = "A reset link has been sent to you email";
}
?>
<!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="stylesheet" href="./assets/css/font-awesome.min.css">
<link rel="stylesheet" href="./assets/css/style.css">
<title>Forgot my password</title>
</head>
<body>
<main class="main">
<div class="container main__container">
<div class="login_form_container">
<form class="login_form" action="" method="POST" autocomplete="off">
<input type="email" name="email" id="email" placeholder="email" required>
<button type="submit">Send</button>
<div>
<p class="red"><?php echo $message?></p>
<p>Already have an account? Login <a href="login.php">here</a></p>
<p>Don't have an account? Sign up <a href="register.php">here</a></p>
</div>
</form>
</div>
</div>
</main>
<script src="./assets/js/index.js"></script>
</body>
</html>