-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpassword_change.php
More file actions
138 lines (117 loc) · 5.66 KB
/
password_change.php
File metadata and controls
138 lines (117 loc) · 5.66 KB
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
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
<?php
include_once 'site_connection.php';
if (isset($_POST['submit']))
{
$password = $_POST['password'];
$password2 = $_POST['password2'];
if($password==$password2)
{
$row = $_SESSION['user_row'];
$id = $row['id'];
$sql_select = "select * from user_register where password='$password2' and id='$id'";
$data = mysqli_query($conn,$sql_select);
$count = mysqli_num_rows($data);
if($count==0)
{
$sql_update = "update user_register set password='$password2' where id='$id'";
mysqli_query($conn,$sql_update);
{ ?>
<div style="text-align: center; color: green; padding-top:10px;">"Password has been changed sucessfully, Kindly <b>Back to Login</b> now...."</div>
<?php }
}
else
{
{ ?>
<div style="text-align: center; color: red; padding-top:10px;">"Entered password is already used before..! Kindly use another password...."</div>
<?php }
}
}
else
{ ?>
<div style="text-align: center; color: red; padding-top:10px;">"Re-enter password is not match..! Kindly enter same passwored in both field...."</div>
<?php }
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<title>Home</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!--===============================================================================================-->
<link rel="icon" type="image/png" href="images/icons/favicon.png"/>
<!--===============================================================================================-->
<link rel="stylesheet" type="text/css" href="vendor/bootstrap/css/bootstrap.min.css">
<!--===============================================================================================-->
<link rel="stylesheet" type="text/css" href="fonts/font-awesome-4.7.0/css/font-awesome.min.css">
<!--===============================================================================================-->
<link rel="stylesheet" type="text/css" href="fonts/iconic/css/material-design-iconic-font.min.css">
<!--===============================================================================================-->
<link rel="stylesheet" type="text/css" href="fonts/linearicons-v1.0.0/icon-font.min.css">
<!--===============================================================================================-->
<link rel="stylesheet" type="text/css" href="vendor/animate/animate.css">
<!--===============================================================================================-->
<link rel="stylesheet" type="text/css" href="vendor/css-hamburgers/hamburgers.min.css">
<!--===============================================================================================-->
<link rel="stylesheet" type="text/css" href="vendor/animsition/css/animsition.min.css">
<!--===============================================================================================-->
<link rel="stylesheet" type="text/css" href="vendor/select2/select2.min.css">
<!--===============================================================================================-->
<link rel="stylesheet" type="text/css" href="vendor/daterangepicker/daterangepicker.css">
<!--===============================================================================================-->
<link rel="stylesheet" type="text/css" href="vendor/slick/slick.css">
<!--===============================================================================================-->
<link rel="stylesheet" type="text/css" href="vendor/MagnificPopup/magnific-popup.css">
<!--===============================================================================================-->
<link rel="stylesheet" type="text/css" href="vendor/perfect-scrollbar/perfect-scrollbar.css">
<!--===============================================================================================-->
<link rel="stylesheet" type="text/css" href="css/util.css">
<link rel="stylesheet" type="text/css" href="css/main_css.css">
<!--===============================================================================================-->
</head>
<!-- breadcrumb -->
<div class="container">
<div class="bread-crumb flex-w p-l-25 p-r-15 p-t-30 p-lr-0-lg">
<a href="index.php" class="logo_login">
<img src="images/icons/logo-01.png" alt="IMG-LOGO">
</a>
</div>
<div class="login_text">
<h4 class="p-b-15 ltext-108 cl2 trans-04">
PASSWORD CHANGE
</h4>
<p class="stext-117 cl6">
Enjoy a personalised shopping experience
</p>
</div>
<!-- Shoping Cart -->
<form method="post">
<div class="bg0 p-t-50">
<div class="container">
<div class="row">
<div class="col-lg-5 col-md-6 col-sm-10 m-lr-auto">
<div class="col-12 p-b-30">
<label class="stext-102 cl3" for="password">Password</label>
<input class="size-111 bor8 stext-102 cl2 p-lr-20" id="email" type="password" name="password" required>
</div>
<div class="col-12 p-b-30">
<label class="stext-102 cl3" for="password2">Re-enter Password</label>
<input class="size-111 bor8 stext-102 cl2 p-lr-20" id="email" type="password" name="password2" required>
</div>
<div class="col-sm-12 p-b-5 button_login_flex">
<button class="flex-c-m stext-101 cl0 size-112 bg7 bor11 hov-btn3 p-lr-15 trans-04 m-b-10" name="submit">
Change Password Submit
</button>
</div>
<label class="stext-102 cl3 login_or" for="email">--- OR ----</label>
<div class="login_flex">
<small style="font-size: 13px">Password has been changed ? </small>
<a href="login_home.php" class="flex-c-m cl0 size-112 bg7 bor11 p-lr-15 trans-04 m-b-2 register" name="review_submit" id="review_count">Back to Login</a>
</div>
</div>
</div>
</div>
</div>
</form>
</div>
<?php include_once 'scripts.php'; ?>