Ford, Mike [LSS] wrote:
while I agree that it doesn't break standards - I do find it odd.-----Original Message-----
From: Cal Evans [mailto:[EMAIL PROTECTED]]
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.
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
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php