I’ve created a code to change a password. Now it seem contain an error. When I fill in the form to change password, and click save the error message:
You forgot enter your user id!
Please try again.
I really don’t know what the error message means. Please guys. Help me fix it.
Here’s is the code:
You forgot enter your userid!';
}else{
$u=escape_data($_POST['userid']);
}
//check for existing password
if(empty($_POST['password'])){
$p=FALSE;
$message .='You forgot to enter your existing password!
';
}else{
$p=escape_data($_POST['password']);
}
//check for a password and match againts the comfirmed password.
if(empty($_POST['password1'])) {
$np=FALSE;
$message .=' you forgot to enter your new password!
';
}else{
if($_POST['password1'] == $_POST['password2']){
$np=escape_data($_POST['password1']);
}else{
$np=FALSE;
$message .=' your new password did not match the confirmed new password!
';
}
}
2 ANSWERS
You must be logged in to reply to this topic.