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
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php