RE: [PHP] getting values from multiple select
| From: | Ford, Mike [LSS] | Date: | Thu, 14 Mar 2002 12:13:43 +0000 |
| Subject: | RE: [PHP] getting values from multiple select | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-88476@lists.php.net to get a copy of this message | ||
> -----Original Message-----
> From: Scott St. John [mailto:scott@scottah.com]
> Sent: 13 March 2002 21:32
>
> I am working on a javascript box that will allow the user to
> drag values
> from one select box to another. I will use this box to set
> the values.
> This is a standard, multiple select box. On the next page I need to
> figure out what PHP is doing with the data coming in.
>
> If I send 5 fields to the next page PHP will show me one when
> I echo the
> variable to the page.
Name your field with trailing brackets (e.g. <INPUT NAME="field_name[]" ...) and you
will see it as an array in PHP containing your 5 (or however many) values.
Cheers!
Mike
---------------------------------------------------------------------
Mike Ford, Electronic Information Services Adviser,
Learning Support Services, Learning & Information Services,
JG125, James Graham Building, Leeds Metropolitan University,
Beckett Park, LEEDS, LS6 3QS, United Kingdom
Email: m.ford@lmu.ac.uk
Tel: +44 113 283 2600 extn 4730 Fax: +44 113 283 3211