-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsettings.php
46 lines (46 loc) · 1.84 KB
/
settings.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
<?php
require 'includes/common.php';
//if user is not logged in
if(!isset($_SESSION['email'])){
header('location:index.php');
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Settings | Life Style Store</title>
<link href="css/bootstrap.css" rel="stylesheet">
<link href="css/style.css" rel="stylesheet">
<script src="js/jquery.js"></script>
<script src="js/bootstrap.min.js"></script>
</head>
<body>
<?php
require 'includes/header.php';
?>
<div class="container-fluid" id="content">
<div class="row">
<div class="col-lg-4 col-lg-offset-4" id="settings-container">
<h4>Change Password</h4>
<form action="settings_script.php" method="POST">
<div class="form-group">
<input type="password" class="form-control" name="old-password" placeholder="Old Password" required>
</div>
<div class="form-group">
<input type="password" class="form-control" name="new-password" placeholder="New Password" required>
</div>
<div class="form-group">
<input type="password" class="form-control" name="retype-password" placeholder="Re-type New Password" required>
</div>
<button type="submit" class="btn btn-primary">Change</button>
<div><?php echo $_GET['error']; ?></div>
</form>
</div>
</div>
</div>
<?php
require 'includes/footer.php';
?>
</body>
</html>