Re: how to user <select multiple="true">

From: Date: Wed, 16 Oct 2002 01:40:53 +0000
Subject: Re: how to user <select multiple="true">
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-120091@lists.php.net to get a copy of this message
If I remember correctly, you must set the name field with [] to make it an array. Example: <select multiple="true" name="foo[]"> then $foo is an array of the selections. -js Khalid El-Kary wrote:
hi, If i have a form that has a <select> with multiple="ture" how would i be able to retireve it's multiple values in the PHP script, i tried the $_REQUEST['fieldname'] it gave me only the last selected value note: multiple selection is done by holding ctrl :) khalid _________________________________________________________________ Unlimited Internet access -- and 2 months free! Try MSN. http://resourcecenter.msn.com/access/plans/2monthsfree.asp


« previous php.general (#120091) next »