passing variables + if case
| From: | Andras Kende | Date: | Sat, 05 May 2001 00:08:30 +0000 |
| Subject: | passing variables + if case | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-51488@lists.php.net to get a copy of this message | ||
Hi All,
I new to php trying to do a php page which gets a variables from an html
form
Somehow this if case not working 100%
Is this is a correct format ???
Thanks :)
Andrew
if
(
(($name=="1") and ($passwd=="1") and ($city=="HOU"))
or
(($name=="2") and ($passwd=="2") and ($city=="LAX"))
or
(($name=="3") and ($passwd=="3") and ($city=="TAM"))
)
{
echo "bla bla ..etc.....................................................";
} else {
echo "Access Denied. Please check your password.;
}
?>