-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathuserreset.php
68 lines (63 loc) · 1.95 KB
/
userreset.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
<?php
include("header.php");
if(isset($_POST[changepassword]))
{
$sql = "UPDATE users SET password=$_POST[password] where
username=$_POST[username]";
if(!mysqli_query($con,$sql))
{
die(Error: . mysqli_error($con));
}
else
{
echo "Password updated successfully...";
}
}
?>
<div class="slider_top2">
<h2>Services</h2>
<p>“It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout.Content here, content here, making it look like readable English.”<br />
<a href="#">by: John S., businessman</a></p>
</div>
<div class="clr"></div>
<div class="body_resize">
<div class="body">
<div class="left">
<h2 class="serv">Userreset</h2>
<p>
<form method="post" action="">
<table class="tftable" width="464" height="25%" border="1">
<tr>
<th width="166" height="37%" scope="col">User Name</th>
<td width="144" scope="col">
<input name="username" type="text" id="username" size="30" placeholder="Enter User Name"></td>
</tr>
<tr>
<th height="20%" scope="row">New Password</th>
<td><label for="new password"></label>
<input name="password" type="password" id="password" size="30" placeholder="Enter New Password"></td>
</tr>
<tr>
<th height="20%" scope="row">Confirm Password</th>
<td><label for="password"></label>
<input name="cpassword" type="password" id="cpassword" size="30" placeholder="Enter Confirm Password"></td>
</tr>
<tr>
<th height="23%" colspan="2" scope="row"><input type="Submit" name="changepassword" id="changepassword" value="Change password"></th>
</tr>
</table>
</form> </p>
<p> </p>
<p> </p>
</div>
<div class="right">
<?php
include("usersidebar.php");
?>
</div>
<div class="clr"></div>
</div>
</div>
<?php
include("footer.php");
?>