-
Notifications
You must be signed in to change notification settings - Fork 40
/
Copy pathresetpswd.php
78 lines (66 loc) · 2.64 KB
/
resetpswd.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
70
71
72
73
74
75
76
77
78
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css">
<title>Conforming</title>
<style>
body
{
background-image:url('images/brr.png');
background-repeat: no-repeat;
background-size: cover;
}
</style>
</head>
<body>
<h1 align='center' style="margin: 15px; color:green;font-weight: bold;font-family:'Times New Roman', Times, serif">THE BROKEN SAINT</h1><hr/>
<P align='center' style="font-weight: bold;color:yellow;font-family:'Times New Roman', Times, serif">The Fastest Courier Service Ever</P>
<div><h5 ><a href="index.php" style="float: right; margin-right:40px; color:blue; margin-top:0px">SignIn</a></h5></div>
<div class="container" style="margin-top: 60px; width:50%;">
<div class="row">
<div class="col-md-12">
<h2 style="color: #273c75;">Verify The Following Details</h2>
<p style="color:#e84118;">To Reset Your Passwprd⮯⮯</p>
<form action="resetpswd.php" method="get">
<div class="form-group">
<label>Email</label>
<input type="email" name="email" class="form-control" placeholder="Enter emailId" required>
</div>
<div class="form-group">
<input type="submit" name="submit" class="btn btn-primary" value="Verify" />
</div>
<p style="color: #e84118;">Don't have an account?⮞➤ <a href="register.php">Register here</a>.</p>
</form>
</div>
</div>
</div>
</body>
</html>
<?php
require_once "dbconnection.php";
// require_once "session.php";
if (isset($_REQUEST['submit'])) {
$email = $_REQUEST['email'];
$qryy= "SELECT * FROM `login` WHERE `email`='$email'";
$run= mysqli_query($dbcon,$qryy);
$row= mysqli_num_rows($run);
if($row<1){
?>
<script>alert("Opps! Email not matched..Try again or Create New One");
window.open('resetpswd.php','_self');
</script> <?php
}
else{
$data= mysqli_fetch_assoc($run);
$id=$data['u_id'];
session_start();
$_SESSION['gid']=$id;
?> <script>
window.open('reset.php','_self');
</script>
<?php
}
}
?>