I have a simple line of code that is checking the value of the password field from the submitted form.
This one works:
I need to change it so password is not equal to abc01 OR def01.
I thought this would work but it doesn't:
Any ideas?
This one works:
Code:
<?php
if ($_POST['password'] != 'abc01') {
header("Location: tryagain.htm");
exit;
}
?>
I need to change it so password is not equal to abc01 OR def01.
I thought this would work but it doesn't:
Code:
<?php
if (($_POST['password'] != 'abc01') || ($_POST['password'] != 'def01')) {
header("Location: tryagain.htm");
exit;
}
?>
Any ideas?