-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathchangePwd.php
30 lines (27 loc) · 985 Bytes
/
changePwd.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
<?php
require "header.php";
?>
<?php
# Error messages
$msgOld = $msgNew = $msgNew2 = "";
// if (isset($_GET["error"])) {
// $error = $_GET["error"];
// switch ($error) {
// case "empty":
// $msgOld = "Insert the last used password.";
// $msgNew = "Choose a new password.";
// $msgNew2 = "Repeat to confirm the new password.";
// break;
// }
// }
?>
<h1>Change Password:</h1>
<form action="includes/changePwd.inc.php" method="post">
<input type="password" name="oldPwd" placeholder="Old Password"><span class="error"> <?php echo $msgOld ?></span> <br>
<input type="password" name="newPwd" placeholder="New Password"><span class="error"> <?php echo $msgNew ?></span><br>
<input type="password" name="newPwd2" placeholder="Confirm New Password"><span class="error"> <?php echo $msgNew2 ?></span><br>
<button type="submit" name="change-submit">Change it.</button>
</form>
<?php
require "footer.php";
?>