Re: Multi Selection Boxes
| From: | jeremy brand | Date: | Tue, 02 Jan 2001 19:49:09 +0000 |
| Subject: | Re: Multi Selection Boxes | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-32300@lists.php.net to get a copy of this message | ||
You use an array.
<select name="foo[]" multiple>
<option value="1">one
<option value="2">two
<option value="3">three
</select>
Then when it is submitted, you will have an array called foo which
contains the selected options.
Jeremy
Jeremy Brand :: Sr. Software Engineer :: 408-245-9058 :: jeremy@nirvani.net
http://www.JeremyBrand.com/Jeremy/Brand/Jeremy_Brand.html
for more
Get your own Free, Private email at http://www.smackdown.com/
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
"<body>" -- Quoted from Yahoo! homepage, http://www.yahoo.com
On Tue, 2 Jan 2001, Brandon Orther wrote:
> Date: Tue, 02 Jan 2001 11:13:03 -0800
> From: Brandon Orther <brandon@webintellects.com>
> To: PHP User Group <php-general@lists.php.net>
> Subject: [PHP] Multi Selection Boxes
>
> Hello,
>
> I have a select box on a web page and I want people to be able to select
> more than just one thing. How would I get all the things they highlighted?
>
> Thank you,
>
> --------------------------------------------
> Brandon Orther
> WebIntellects Design/Development Manager
> brandon@webintellects.com
> 800-994-6364
> www.webintellects.com
> --------------------------------------------
>
>
> --
> 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
>
>