Re: [PHP] Simple IF question

2002-04-20 Thread Denis L. Menezes
Yes Jason, You are right. However, I missed the == in my over-enthusiasm. Thanks and sorry. Denis - Original Message - From: "Jason Wong" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, April 21, 2002 1:06 AM Subject: Re: [PHP] Simple IF question > O

Re: [PHP] Simple IF question

2002-04-20 Thread Jason Wong
On Sunday 21 April 2002 00:27, Denis L. Menezes wrote: > Thanks Gentlemen. > > After many experiments, I found the answer. It should be "= =" and not "=". Surely you mean "==", which more than one person has already pointed out? -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open S

Re: [PHP] Simple IF question

2002-04-20 Thread Denis L. Menezes
t;[EMAIL PROTECTED]> 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. > >

Re: [PHP] Simple IF question

2002-04-20 Thread Miguel Cruz
- > From: "Jason Wong" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > 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 > >

Re: [PHP] Simple IF question

2002-04-20 Thread Denis L. Menezes
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" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, April 20, 2002 7:34 PM Subject: Re: [PHP] Simple IF question

Re: [PHP] Simple IF question

2002-04-20 Thread Jason Wong
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") {

Re: [PHP] Simple IF question

2002-04-20 Thread Tom Rogers
Hi again You can also write it as: If (($salutation != "Please select") Print ("Sorry, please select a value in the salutation box"); Tom At 08:29 PM 20/04/2002, Tom Rogers wrote: >Hi >You need to use the double = in the if condition like > >If ((!$salutation=="Please select") >Print ("

Re: [PHP] Simple IF question

2002-04-20 Thread Tom Rogers
Hi You need to use the double = in the if condition like If ((!$salutation=="Please select") Print ("Sorry, please select a value in the salutation box"); Tom At 08:17 PM 20/04/2002, Denis L. Menezes wrote: >Hello friends, > >I have a registration form with a salutation field in a listbox,