Re: how to read the value of the select when use the MULTIPLE method

From: Date: Fri, 12 Oct 2001 07:46:18 +0000
Subject: Re: how to read the value of the select when use the MULTIPLE method
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-70895@lists.php.net to get a copy of this message
Where is your </option> tags? I think - If you name your select something like (NO DASHES!!!): name="myselect[]" by placing the [], you will receive an array in PHP named $myselect with each element corresponding to the selected elements. Hope it helps! -Jason Garber IonZoft.com At 03:34 PM 10/12/2001 +0800, jakry wrote:
how to read the value of the select when use the MULTIPLE method like <SELECT NAME="what-to-do" MULTIPLE SIZE=10> <OPTION VALUE="drink">Drink Coffee <OPTION VALUE="read" SELECTED>Read A Book <OPTION value=walk>Take A Walk <OPTION> Chop Down Rainforests <OPTION> Buy A Bagel <OPTION>Watch TV <OPTION>Sell Art <OPTION>Buy Jewelry <OPTION>Attend A Concert <OPTION>Read Poetry <OPTION>Exercise <OPTION>Whittle <OPTION>Cook Stir Fry <OPTION>Sip Espresso <OPTION value="Pig Out">Munch Teddy Grahams </SELECT> when i select two value..well after submit i just can read the last value... so how i can read the all value where i have select thank -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net


« previous php.general (#70895) next »