|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2003-06-21 04:59 UTC] derick@php.net
[2003-06-21 05:03 UTC] alan_k@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Dec 12 07:00:01 2025 UTC |
Description: ------------ Assuming register_globals is turned off in the php.ini file, the $GLOBALS variable array will then be used in accessing variables defined in the script. In our case, this doesn't seem to work. Reproduce code: --------------- <html> <body> <a href="thisfile.php?nav=MORE">Click me for more!</a> <? if($GLOBALS["nav"]=="MORE") { echo "You just clicked for more!"; } else { ?> <? } ?> </body> </html> Expected result: ---------------- Before: Click me for more! After clicking: Click me for more! You just clicked for more! Actual result: -------------- Before: Click me for more! After clicking: Click me for more!