Re: Simple IF question

From: Date: Sat, 20 Apr 2002 11:34:41 +0000
Subject: Re: Simple IF question
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-93805@lists.php.net to get a copy of this message
On Saturday 20 April 2002 18:35, Tom Rogers wrote: > Hi again > You can also write it as: > If (($salutation != "Please select").... > Print ("Sorry, please select a value in the salutation box"); > Tom Also the logic seems to be wrong, shouldn't it be: if (($salutation == "Please select") { print ("Sorry, please select a value in the salutation box"); } else { ... } -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /* Men often believe -- or pretend -- that the "Law" is something sacred, or at least a science -- an unfounded assumption very convenient to governments. */

« previous php.general (#93805) next »