Re: If Else Syntax Incorrect (I Think)

From: Date: Fri, 13 Aug 2004 11:48:23 +0000
Subject: Re: If Else Syntax Incorrect (I Think)
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-193687@lists.php.net to get a copy of this message
On Friday 13 August 2004 19:33, Harlequin wrote: > 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 > } WHAT help did you want? Not all of us are mindreaders. 1) State what you want to do (preferably in English -- as opposed to code) 2) State what you did (probably in code) 3) State what you expected to happen 4) State what actually happened, along with error messages if appropriate -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * ------------------------------------------ Search the list archives before you post http://marc.theaimsgroup.com/?l=php-general ------------------------------------------ /* Who is John Galt? */

« previous php.general (#193687) next »