If Else Syntax Incorrect (I Think)
| From: | Harlequin | Date: | Fri, 13 Aug 2004 11:33:07 +0000 |
| Subject: | If Else Syntax Incorrect (I Think) | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-193684@lists.php.net to get a copy of this message | ||
Can someone help with this please...?
if( strlen( $UserID ) != 0
& strlen( $UserPassword ) != 0
& strlen( $SecretPassword ) != 0
& strlen( $UserMail ) != 0 )
{
Do something
}
elseif ( strlen( $UserID ) == 0
or strlen( $UserPassword ) == 0
or strlen( $SecretPassword ) == 0
or strlen( $UserMail ) == 0 )
{
Do Something else
}
--
-----------------------------
Michael Mason
Arras People
www.arraspeople.co.uk
-----------------------------