Re[2]: [PHP] mutliple select form not passing multiple values
| From: | Richard Davey | Date: | Wed, 11 Feb 2004 22:54:31 +0000 |
| Subject: | Re[2]: [PHP] mutliple select form not passing multiple values | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-177463@lists.php.net to get a copy of this message | ||
Hello Ben,
Wednesday, February 11, 2004, 9:38:38 PM, you wrote:
BR> Ah-ha! I missed that, and I always do. Let's hope I don't anymore.
BR> While we're on the subject, why is PHP set up this way? Why can't it
BR> just add the elements to the array automatically, since adding the
BR> square brackets to one's HTML form name is not a standard practice?
I guess because the times when a value will be an array vs. a straight
variable are probably so small that it's un-necessary overhead on
PHP's behalf to have to treat every single element as a potential
array. Far easier to just stick [] on the end and tell PHP it is.
--
Best regards,
Richard mailto:rich@launchcode.co.uk