forked from MariaJMRibeiro/FEUP-LTW
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathchange_password.php
49 lines (36 loc) · 1.47 KB
/
change_password.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
<!DOCTYPE html>
<html lang="en-US">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Reddit</title>
<link href="css/style.css" rel="stylesheet">
<link href="css/layout.css" rel="stylesheet">
<link href="css/profile.css" rel="stylesheet">
</head>
<body>
<?php include_once('common/header.php'); ?>
<div class="change_password">
<form class="edit_content" action='action_change_password.php' method='post'>
<div class="input_container">
<h3><span class="change-password-title">Change password</span></h3>
</div>
<div class="input_container">
<input type="password" placeholder="Current password" name="old_password" required>
</div>
<div class="input_container">
<input type="password" placeholder="New password" name="new_password" required>
</div>
<div class="input_container">
<input type="password" placeholder="Confirm password" name="confirmed_password" required>
</div>
<div class="button_container">
<button type="submit">Save changes</button>
</div>
<?php if (isset($_GET['error'])) {
echo "<p>" . $error = $_GET['error'] . "</p>";
} ?>
</form>
</div>
<?php include_once('common/footer.php'); ?>
</body>
</html>