|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2004-07-19 18:45 UTC] dino at kataris dot de
Description:
------------
I think I don't have to say more as in the summary I wrote,...
Data not in $_REQUEST, but in $_POST or $_GET
Reproduce code:
---------------
// works:
$page = 'start';
if(isset($_POST['page']))
{
$page = $_POST['page'];
}
if(isset($_GET['page']))
{
$page = $_GET['page'];
}
// doesn't works:
$page = 'start';
if(isset($_REQUEST['page']))
{
$page = $_REQUEST['page'];
}
Expected result:
----------------
The variable $page should have the value of the data, the script request ;)
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Oct 27 04:00:02 2025 UTC |
I'm seeing exactly the same problem but running on a new install of RedHat EL 3 with a fresh compile of PHP 5.0.1 The code I've been using (slightly more obvious than previous example): <?php var_dump($_REQUEST); var_dump($_GET); ?> using test.php?a=1&b=2: NULL array(2) { ["a"]=> string(1) "1" ["b"]=> string(1) "2" } It's acting like EGPCS options are empty (they are set correctly in my php.ini)?