Does it show the message and the form or just the message?


-----Original Message-----
From: Jennifer Downey [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, April 23, 2002 12:23 PM
Subject: Re: [PHP] If else question

> If and else expect to be followed by exactly 1 statement. To aggregate 
> multiple statements as one, surround them with {curly braces}. I'm 
> guessing you didn't do that, and you're seeing the execution of all 
> but the first of the statements following the else.
> So it should be:
>   if ($var<1)
>     echo "can't be found";
>   else
>   {
>     echo "first line of form";
>     echo "second line of form";
>   }
This is what I have:

if($quantity < 1)
echo "Sorry I can't seem to locate this item";
do this
So yes I have done exactly as you have stated and it still shows the form.


Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (
Version: 6.0.351 / Virus Database: 197 - Release Date: 4/19/2002

PHP General Mailing List (
To unsubscribe, visit:

PHP General Mailing List (
To unsubscribe, visit:

Reply via email to