Re: multiple options in select.

From: Date: Sat, 25 Nov 2000 07:48:20 +0000
Subject: Re: multiple options in select.
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-27112@lists.php.net to get a copy of this message
You need to use an array as the name of your select, like this: <select multiple name="myfield[]"> <option value="option1">Option 1</option> <option value="option2">Option 2</option> <option value="option3">Option 3</option> </select> Then all options highlighted will be fed in the $myfield[] array. Pascal Jolin ----- Original Message ----- From: "Deepak Chawla" <dchawla@usa.unl.edu> To: <php-general@lists.php.net> Sent: Saturday, November 25, 2000 2:41 AM Subject: [PHP] multiple options in select. > Hi! > > In a html form i have a select-option element in which i can select > multiple options... > I'm posting the form to a php file. How do i access all the options > selected ?? i'm only getting the last option selected. > > regards > -deepak > > > -- > 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 (#27112) next »