|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2007-01-27 12:52 UTC] tony2001@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Dec 15 23:00:01 2025 UTC |
Description: ------------ The $_GET superglobals are not available when called from included files. Reproduce code: --------------- <?php #include file include_once("includes/functions.inc.php"); ?> ----- included file --- <?php if(isset($_GET["TOKENID"])) $myToken = $_GET["TOKENID"]; else $myToken = ""; #end ifs print $myToken; ?> Expected result: ---------------- The value of $myToken is outputed to the screen. Actual result: -------------- $myToken does not have any value associated with. I even tried using print_r($_GET) which returns an empty array. I have tried upgrading to PHP5 as well, but I have the same issue.