Re: Verry strange GET behaviour

From: Date: Tue, 07 Oct 2003 15:14:02 +0000
Subject: Re: Verry strange GET behaviour
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-165309@lists.php.net to get a copy of this message
Ben Edwards wrote:
Been having a problem accessing a variable that is passed on a URL. I've been developing PHP for years and this makes no seance. The variable I am trying to access in the script is $_section. I put the following code at the beginning (before anything else apart from <?) echo "!$REQUEST_URI!$_section!"; I get the following output !/adultdyslexia.org/quiz.php?_menu=TOP&issue=1&_section=QUIZ&gen=Y!! So why is $_section blank!
Probably because you have register_globals turned off. You can use $_GET['_section']. You can also turn it on. http://us3.php.net/register_globals - Brad

« previous php.general (#165309) next »