Re: Simple IF question

From: Date: Sat, 20 Apr 2002 16:27:50 +0000
Subject: Re: Simple IF question
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-93815@lists.php.net to get a copy of this message
Thanks Gentlemen. After many experiments, I found the answer. It should be "= =" and not "=". thanks for all yr help. Denis ----- Original Message ----- From: "Miguel Cruz" <mnc@stoic.net> To: "Denis L. Menezes" <menezesd@singnet.com.sg> Cc: <php-general@lists.php.net> Sent: Sunday, April 21, 2002 12:10 AM Subject: Re: [PHP] Simple IF question > Why don't you print out $salutation and see what you're getting? > > miguel > > On Sun, 21 Apr 2002, Denis L. Menezes wrote: > > > Hello Jason. > > > > You are right, but it still does not work. > > > > Could it be a trim word problem? > > Thanks > > Denis > > ----- Original Message ----- > > From: "Jason Wong" <php-general@gremlins.com.hk> > > To: <php-general@lists.php.net> > > Sent: Saturday, April 20, 2002 7:34 PM > > Subject: Re: [PHP] Simple IF question > > > > > > > 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. > > > */ > > > > > > -- > > > PHP General Mailing List (http://www.php.net/) > > > To unsubscribe, visit: http://www.php.net/unsub.php > > > > > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.general (#93815) next »