RE: order of elements in $_POST super global
| From: | Ford, Mike | Date: | Fri, 09 Jun 2006 14:07:35 +0000 |
| Subject: | RE: order of elements in $_POST super global | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-237699@lists.php.net to get a copy of this message | ||
On 09 June 2006 13:55, Mindaugas L wrote:
> Hello,
> "
> The basic problem is that the way a $_POST variable gets processed is
> in the order it is in on the original form. "
> I think it's very natural behaviour.
>
> But be careful with associative arrays, I think before version
> 5.12.there was a bug, if you want that PHP makes an associative array
> of form elements. http://bugs.php.net/bug.php?id=37276
That's a strictly 5.1.3 bug -- everything's fine in 5.1.2 and previous, and in 5.1.4 (and
subsequent versions!).
Cheers!
Mike
---------------------------------------------------------------------
Mike Ford, Electronic Information Services Adviser,
Learning Support Services, Learning & Information Services,
JG125, James Graham Building, Leeds Metropolitan University,
Headingley Campus, LEEDS, LS6 3QS, United Kingdom
Email: m.ford@leedsmet.ac.uk
Tel: +44 113 283 2600 extn 4730 Fax: +44 113 283 3211
To view the terms under which this email is distributed, please go to http://disclaimer.leedsmet.ac.uk/email.htm