Re: If else question

From: Date: Tue, 23 Apr 2002 18:57:55 +0000
Subject: Re: If else question
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-94234@lists.php.net to get a copy of this message
I have it. I actually got it! I had the if statement in the wrong place. Here is what I did: if($quantity <1) { echo "Sorry I can't seem to locate this item"; } else { //check if form has been submitted if($submit) { } else { //if the form has not been submitted run the following echo "<FORM ACTION='sortitems.php'METHOD='post'>"; echo "<SELECT NAME='sort' SIZE='1' >"; echo "$thisoption"; echo "<OPTION VALUE='shop'>Put in my shop</OPTION>"; echo "<OPTION VALUE='locker'>Put into my Footlocker</OPTION>"; echo "<OPTION VALUE='discard'>Discard this item</OPTION>"; echo "<OPTION VALUE='donate'>Donate this item</OPTION>"; echo "</SELECT>"; echo "<INPUT TYPE='submit' VALUE='Submit' NAME='submit'>"; echo "</FORM>"; } } } and it worked perfectly! Thank you ALL for your time and help! Jennifer P.S. You people are wonderfull! --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.351 / Virus Database: 197 - Release Date: 4/19/2002

« previous php.general (#94234) next »