-
Notifications
You must be signed in to change notification settings - Fork 15
/
pw_change.php
56 lines (50 loc) · 1.29 KB
/
pw_change.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
<?php
session_start();
$title = "password change";
include('header.php');
?>
<style>
body {
margin: 0;
padding: 0;
background-image: none;
background-size: cover;
}
</style>
<header class="customer">
<div class="content-wrap">
<div>
<nav>
<img src="images/logo.PNG">
<a href="index.php">Home</a>
<?php
/*IF THE USER IS LOGGED IN THEN DISPLAY LOGOUTBUTTON
----------------------------------------------------*/
if (isset($_SESSION['u_id'])){
echo'<form action="process/logout_process.php" method = get>
<button type="submit" name="logout">Logout</button>
</form>';
}
?>
</nav>
<div>
<a href="pw_change.php">Change password</a>
</div>
</div>
</div>
</header>
<section class="container">
<div>
<p>Leave the field blank if you don't want to change.</p>
<p>Old username and password must be entered</p>
<form method="post" action="process/pw_change_process.php">
<input type="password" name="old_password" placeholder="old_password">
<input type="text" name="new_username" placeholder="new_username">
<input type="password" name="new_password" placeholder="new_password">
<input type="submit" name="request_change" value="request change">
</form>
</div>
</section>
<?php
include('footer.php');
?>