-
Notifications
You must be signed in to change notification settings - Fork 0
/
forgot.php
64 lines (61 loc) · 1.57 KB
/
forgot.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
<?php
require_once('connect.php');
$er1=0;
if(isset($_REQUEST['forgot']))
{
$pn=$_REQUEST['userid'];
$pass=$_REQUEST['pass1'];
$cpass=$_REQUEST['cpass1'];
if($pass==$cpass)
{
$seluser=mysqli_query($con,"update user set pass='$pass' where pannum like '$pn'");
$sellogin=mysqli_query($con,"update login set pass='$pass' where userid like '$pn'");
header("location:login.php");
}
}
?>
<!DOCTYPE HTML>
<html>
<?php
require_once('head.php');
?>
<body>
<?php
require_once('top1.php');
?>
<?php
require_once('top2.php');
?>
<!-- banner -->
<div class="courses_banner">
<div class="container">
<h3>Forgot Password</h3>
<p class="description">
</p>
<div class="breadcrumb1">
<ul>
<li class="icon6"><a href="index.php">Home</a></li>
<li class="current-page">Forgot Password</li>
</ul>
</div>
</div>
</div>
<!-- //banner -->
<div class="courses_box1">
<div class="container">
<form class="login" method="post">
<p class="lead">Change Your Password!</p>
<div class="form-group">
<input autocomplete="off" type="text" name="userid" class="required form-control" required="" placeholder="Enter User Id" onblur="usercheck('userpan',this.value,'','');" id="userid">
</div>
<div id="dis"></div>
<br/>
<p>Already have an account? <a href="login.php">Sign In</a></p>
</form>
</div>
</div>
<?php
require_once('footer.php');
?>
</body>
</html>