Re: Simple IF question
| From: | Tom Rogers | Date: | Sat, 20 Apr 2002 10:29:45 +0000 |
| Subject: | Re: Simple IF question | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-93799@lists.php.net to get a copy of this message | ||
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, in which I want that the registrant must choose a value other than the default value of "please select". So I wrote : If ((!$salutation="Please select").... Print ("Sorry, please select a value in the salutation box"); However, it does not work. Can someone please help? Denis -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php