#21577 [Opn->Bgs]: overriding of GET and POST variables
| From: | helly@php.net | Date: | Sat, 26 Apr 2003 14:46:55 +0000 |
| Subject: | #21577 [Opn->Bgs]: overriding of GET and POST variables | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-38453@lists.php.net to get a copy of this message | ||
ID: 21577
Updated by: helly@php.net
Reported By: p3_bourbon at yahoo dot com dot au
-Status: Open
+Status: Bogus
Bug Type: Feature/Change Request
-Operating System: Win2K / IIS
+Operating System: ANY
PHP Version: 4.3.0
New Comment:
Sorry, but your problem does not imply a bug in PHP itself. For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system
is not the
appropriate forum for asking support questions.
Thank you for your interest in PHP.
They it works now ie fine aas it is.
Previous Comments:
------------------------------------------------------------------------
[2003-01-11 02:43:59] p3_bourbon at yahoo dot com dot au
oops should say arent lost
------------------------------------------------------------------------
[2003-01-11 02:42:30] p3_bourbon at yahoo dot com dot au
The what some people consider a feature of having a same named form
element only keeping the last item is data lost to me.
The array method (foo.php?a[]=1&a[]=2&a[]=3
) is not peferable to have the html templates cross compatible.
There needs to be a mechanism to access these items. With keeping the
status quo for the people that like this effect, why not create another
global which is a hash of a hash so the duplicated named items are
lost. Currently I have written a class to do this all but getting
access to multipart variables seems to be harder. (especially when also
doing file uploading)
eg:
foo.php?a=1&a=2&a=3&b=ten&c=eleven
$_GET_HASH["a"] = array("1","2","3")
$_GET_HASH["b"] = "ten"
$_GET_HASH["c"] = "eleven"
same effect if a form had been posted
$_POST_HASH["a"] = array("1","2","3")
$_POST_HASH["b"] = "ten"
$_POST_HASH["c"] = "eleven"
with $_FILES still accessable like normal
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=21577&edit=1