On Wed, 20 Mar 2002, Joshua E Minnie wrote:
> I have a form with a menu which I need multiple select on. How does PHP
> handle this? I have to use $HTTP_POST_VARS["somevariable"] to access
> somevariable from the form.
For a multiple select, stick [] after the HTML name and you'll get it back
as an array with one element for each item the user selects:
<select multiple name="colors[]">
blah blah
</select>
Will get you an array in $_REQUEST['colors'] .
miguel
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php