Bug #10502: parsing for HTTP_POST_VARS drops duplicates
| From: | mk at adio dot com | Date: | Thu, 26 Apr 2001 05:41:16 +0000 |
| Subject: | Bug #10502: parsing for HTTP_POST_VARS drops duplicates | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-52460@lists.php.net to get a copy of this message | ||
From: mk@adio.com
Operating system: Linux
PHP version: 4.0.4pl1
PHP Bug Type: Feature/Change Request
Bug description: parsing for HTTP_POST_VARS drops duplicates
Parsing of a POST drops duplicate variables unless those variables have "[]".
It's a few lines in Perl to get it, but I need to stay inside PHP....
is there anywhere that the equivalent of thePerl $form field below:
if ( $ENV{'REQUEST_METHOD'} eq "POST" ) {
read(STDIN,$form, $ENV{'CONTENT_LENGTH'});
is available in a PHP session...
I need the whole unparsed line, so that I can manage transforming duplicates into an array.
I have a situation where a check-box coded by someone else I have no control over is sending
multiple values with the same field name. Code for parsing into HTTP_POST_VARS discards all but
the last name value pair in the Parse stage because, unfortunately the field is not ending in
"[]" in the FORM.
... thoughts.
mk@adio.com
--
Edit Bug report at: http://bugs.php.net/?id=10502&edit=1