Php form verification ====& nbsp; have you ever experienced a situation where =====can pass, ===but an error occurs? & Lt ;? Phpif & nbsp; (empty ($ password) & nbsp; | & nbsp; empty ($ cpassword) form verification in php ==and ==
Have you ever seen a situation where ==== can be passed, == is an error?
If (empty ($ password) | empty ($ cpassword )){
Die ("No password Submitted ");
}
Elseif (strlen ($ password) <5) | (strlen ($ password)> 15 )){
Die ("Invalid password length address ");
}
Elseif (! (Strlen (password) = (strlen (cpassword )))){
Die ("Passwords do not match !!! ");
}
Elseif (! (Password) === (cpassword )){
Die ("Passwords do not match! ");
}
Else {
For ($ I = 0; $ I <strlen ($ password); $ I ++ ){
Echo "*";
}
}
?>
Why is an error occurred when my password is =? can I delete this judgment but pass it? Share:
------ Solution --------------------
Elseif (! (Password) === (cpassword )){
$ ???
------ Solution --------------------
Reference:
Elseif (! (Password) === (cpassword )){
$ ???
Good eyesight!