"; //Get required Session variables $LoginMemberID = $_SESSION['LoginMemberID']; $LoginAccessLevel = $_SESSION['LoginAccessLevel']; $strDate = $_SESSION['strDate']; $ViewID = $_SESSION['ViewID']; $user_frist = $_SESSION['u_first']; $user_surname = $_SESSION['u_last']; // make sure that include ('dbConnect.php'); include ('session.php'); if (isset($_POST['submit'])) { // get form data, making sure it is valid $user_id = $_POST['user_id']; $user_pass_1 = $mysqli->real_escape_string($_POST['user_pass_1']); if (!isset($_error)) { // Insert into the database. $user_pass = password_hash($user_pass_1, PASSWORD_DEFAULT);//encrypt the user_pass before saving in the database $mysqli->query("UPDATE user SET user_updated_date=NOW(), user_pass='$user_pass' WHERE user_id='$user_id' ") or die($mysqli->error); $mysqli->query("INSERT INTO user_data SET data_type='new-password', data_value='$user_pass', data_user_id='$user_id' ") or die($mysqli->error); ?>
your password has been changed.
<?php echo $title; ?>

Change password

your about to change your password please enter your new password below

Password must contain the following:

A lowercase letter

A capital (uppercase) letter

A number

Minimum 8 characters

Matching passwords