-
Notifications
You must be signed in to change notification settings - Fork 0
/
changePassword.php
120 lines (102 loc) · 2.73 KB
/
changePassword.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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Change Password</title>
<style>
/* Navbar styling */
nav {
background-color: #0a2647;
padding: 10px;
margin-top: 0;
}
ul {
list-style-type: none;
margin: 0;
padding-left: 30px;
text-align: center;
text-align: left;
}
li {
display: inline;
margin-right: 20px;
}
a {
text-decoration: none;
color: white;
font-weight: bold;
}
body {
font-family: sans-serif;
margin: 40px;
text-align: center;
}
.container {
width: 500px;
margin: 0 auto;
/* Center the container */
padding: 20px;
margin-top: 50px;
border: 1px solid #ccc;
border-radius: 5px;
}
h1 {
text-align: center;
}
/* Form styling */
form {
margin-top: 20px;
}
label {
display: block;
margin-bottom: 5px;
}
input[type="password"] {
width: 80%;
padding: 10px;
border: 1px solid #ccc;
border-radius: 4px;
padding-right: 8px;
}
button {
background-color: #4b70e2;
color: white;
padding: 10px 20px;
border: none;
border-radius: 4px;
cursor: pointer;
}
/* Error message styling */
.error-message {
color: red;
font-weight: bold;
margin-top: 10px;
}
</style>
</head>
<body>
<nav>
<ul>
<li><a href="login.php">LOGIN</a></li>
</ul>
</nav>
<div class="container">
<h1>Change Password</h1>
<form method="post" action="changePassword.php">
<div class="panel panel-info">
<div class="panel-heading">
<h3 class="panel-title text-center " style="font-weight: bold;">Update Password</h3>
</div>
<div class="panel-body">
<div class="form-group">
<label for="new_password">Enter your new password:</label>
<input type="password" name="new_password" required>
</div>
<button type="submit" name="submit" style="margin-top:20px">Reset Password</button>
</div>
</div>
</form>
</div>
</body>
</html>