php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #21577 overriding of GET and POST variables
Submitted: 2003-01-11 02:42 UTC Modified: 2003-04-26 09:46 UTC
From: p3_bourbon at yahoo dot com dot au Assigned:
Status: Not a bug Package: Feature/Change Request
PHP Version: 4.3.0 OS: ANY
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: p3_bourbon at yahoo dot com dot au
New email:
PHP Version: OS:

 

 [2003-01-11 02:42 UTC] 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



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-01-11 02:43 UTC] p3_bourbon at yahoo dot com dot au
oops should say arent lost
 [2003-04-26 09:46 UTC] helly@php.net
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.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon May 20 05:01:32 2024 UTC