Below is code that I’m trying to use to confirm that a user has entered the same password in each textbox(set to password) and if they do then change password in data base. if not then exit and send a message. for some reason its not working
[code=php]
$new_password = $_GET[‘new_password’];
$confirm_password = $_GET[‘confirm_password’];
if($new_password != $confirm_password){
$password_change_msg .= ‘<div style=”width:200px” id= “formmessage”>’;
$password_change_msg .= ‘Passwords do not match, try again<br />’;
$password_change_msg .= ‘</div>’;
include ‘getMyInformation.php’;
exit();
}else{
$password_change_msg .= ‘<div style=”width:200px” id= “formmessage”>’;
$password_change_msg .= ‘Password changed successfully<br />’;
$password_change_msg .= ‘</div>’;
include ‘getMyInformation.php’;
exit();
}