RE: [PHP] Select multiple boxes
| From: | Ford, Mike [LSS] | Date: | Mon, 20 Jan 2003 15:47:16 +0000 |
| Subject: | RE: [PHP] Select multiple boxes | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-132253@lists.php.net to get a copy of this message | ||
> -----Original Message-----
> From: Cal Evans [mailto:cal@calevans.com]
> Sent: 18 January 2003 14:41
>
> use [] in your select box name. When it comes back in the
> $_POST array you
> will have an array of options. It breaks HTML standard
No, it does not break HTML standards -- that is a PHP urban myth (which, to
my chagrin, I helped to propagate before a wiser head sent me to read said
standards in minute detail). It does not even break XHTML standards.
Believe me -- I've interrogated the damn standards to within an inch of
their lives, and they nonetheless insist that [] are legal characters in
form element name= attributes, and form element name= attributes are *not*
deprecated.
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