mac-philiac
New member
How do I add a second thing to check in a PHP statement?
For example:
if ($_POST['password'] != 123456789) {
echo "That is an incorrect password.";
}
I want it to validate another password (I need more than 1 password) like:
if ($_POST['password'] != "123456789"."987654321") {
echo "That is an incorrect password.";
}
The above doesn't work. How would I accomplish the validation of the field with 2 or more possible "passwords"?
Thanks!
For example:
if ($_POST['password'] != 123456789) {
echo "That is an incorrect password.";
}
I want it to validate another password (I need more than 1 password) like:
if ($_POST['password'] != "123456789"."987654321") {
echo "That is an incorrect password.";
}
The above doesn't work. How would I accomplish the validation of the field with 2 or more possible "passwords"?
Thanks!