forked from hngi/Team-EOS-Mini-Classroom
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathteacher-reset.php
44 lines (40 loc) · 1.49 KB
/
teacher-reset.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
<?php
include 'inc/teacher-header.php';
?>
<div class="">
<?php
if($_SERVER['REQUEST_METHOD'] == 'POST' && isset($_POST['submit'])) {
$resetPassword = $teacher->resetPassword($_POST);
}
?>
<div class="login-container">
<div class="form-container " >
<!-- success and error message -->
<?php
if (isset($resetPassword)) {
echo $resetPassword;
}
?>
<h1>Reset Password</h1><br>
<form action="" method="post">
<div class="text-box">
<input class="email" name="email" placeholder="Email Address" required>
</div>
<div class="text-box">
<input class="Password" name="password" placeholder="New Password" required>
</div>
<button type="submit" name="submit" class="button" style="color: #fff;">Reset Password</button>
</form>
<br>
<div class="footer">
<p>Have you remebered your password? <a href="teacher-login.php" style="color: #274970; text-decoration: none; font-weight: bold;">Log in</a></p><br>
</div>
</div>
<div class="picture-cont" >
<img src="images/teacher.png" class="picture">
</div>
</div>
</div>
<script src="js/main.js"></script>
</body>
</html>