php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #24272 $_POST_GET; merge the two and superglobal it
Submitted: 2003-06-20 15:04 UTC Modified: 2003-06-23 19:19 UTC
From: jeremyirons at genevus dot com Assigned:
Status: Not a bug Package: Feature/Change Request
PHP Version: 4.3.2 OS: Solaris 8 & 9
Private report: No CVE-ID: None
 [2003-06-20 15:04 UTC] jeremyirons at genevus dot com
Description:
------------
I often merge $_POST and $_GET together especially when coding UI that have Next/Back interfaces; most of the time my variables get passed via POST, but in some instances it may be GET.  Still I want to access my variables easily from the same place without registering globals

So what I did was merge $_POST and $_GET into $_POST_GET, but then I have to global it in my functions.

So it would be nice to have a merge of $_POST and $_GET as a superglobal

Reproduce code:
---------------
N/A

Expected result:
----------------
N/A

Actual result:
--------------
N/A

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-06-20 15:05 UTC] derick@php.net
Try $_REQUEST .. (merges POST, GET and COOKIE).
 
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Tue May 17 13:05:45 2022 UTC