} if (isset($_GET['pass']) && $_GET['pass'] == "success") { $show = 'passUpdateSuccess'; } else { if (isset($_GET['pass']) && $_GET['pass'] == "fail") { $show = 'passUpdateFail'; } } //echo $show; if ($_POST['update']) { $user_id = $_POST['user_id']; //die('test'); $pwd1 = $_POST['pwd1']; $pwd2 = $_POST['pwd2']; $key = $_POST['key']; $updatePwd = $rm->updateUserPassword($user_id, $pwd1, $key); if ($updatePwd == true) { echo "<meta http-equiv='refresh' content='0;url=ForgotPassword.php?pass=success'>"; } else { echo "<meta http-equiv='refresh' content='0;url=ForgotPassword.php?pass=fail'>"; } } ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge">