-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathforgot.php
More file actions
76 lines (58 loc) · 2.19 KB
/
Copy pathforgot.php
File metadata and controls
76 lines (58 loc) · 2.19 KB
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
74
75
76
<!DOCTYPE html>
<?php
session_start();
include ('mycon.php');
?>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Scent By Anike</title>
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css">
<!-- This webiste is created by Omobolanle Azeezat -->
<link rel="stylesheet" href="style.css">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Bebas+Neue&display=swap" rel="stylesheet">
<!-- jQuery library -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.1/jquery.min.js"></script>
<!-- Latest compiled JavaScript -->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script>
<!--Google map-->
<script src="map.js"></script>
<!-- font awesome -->
<script src="https://kit.fontawesome.com/ba9d34204b.js" crossorigin="anonymous"></script>
<!--favico icon-->
<link rel="icon" href="images/logoaniks.png">
</head>
<body>
<div class="container" id="forgot">
<h4>Forgot Password?</h4>
<form method="post" action="">
<div class="form-group">
<label for="email">Email:</label>
<input type="email" class="form-control" id="email" placeholder="Enter email" name="Email">
</div>
<div class="form-group">
<label for="pwd">Password:</label>
<input type="password" class="form-control" id="pwd" placeholder="Enter password" name="uPassword">
</div>
<input type="submit" class="btn btn-primary" name="update" value="update">
</form>
<?php
if(isset($_POST['update'])){
if(mysqli_query($con, "update all_clients set u_password='$_POST[uPassword]' where u_email='$_POST[Email]'")){
echo "<script>alert('Update successful')</script>";
echo "<script>window.open('login.php', '_self')</script>";
}
}
?>
<div class="text-center">
<a href="login.php">Login</a>
</div>
<br>
<br>
</div>
</body>
</html>