Re: Select multiple boxes
| From: | Sean Burlington | Date: | Mon, 20 Jan 2003 16:57:03 +0000 |
| Subject: | Re: Select multiple boxes | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-132265@lists.php.net to get a copy of this message | ||
Ford, Mike [LSS] wrote:
while I agree that it doesn't break standards - I do find it odd. and annoying in that it limits the ability of php to process certain forms ... I don't see any benefit of this system - it would be better if php just created an array for suitable form data - without requiring that the element name changes. still - I guess it works :) -- Sean-----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 standardNo, 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.