The variable is not able to be used. How do I get it to work? I am useing XP Pro with IIS 5 and internet explorer.
If your passing variables across pages links should look like this form.
http://address/page.php?variable=somevalue
http://www.php.net/manual/en/
http://localhost/District/SCheck.php?Step=1
$Step should = 1 but I am not able to access this value. I am assuming that I need to change some settings some where.
There is two fixes
Update your code, to support the newest PHP format for $_GET['Step']
Enable register_globals
the first one is the best method as soon or later they will kill register globals all together.
That's true, Trystan, I've been hearing most services have already switched.
Daniel, just check your php.ini file for more information about the new global arrays implimented.
I noticed the following:
echo "Hello, $_GET['name']!"; DOESN'T work
echo $_GET['firstname']; DOES work
What is wrong with the first one??
nmk
What am I looking to change in the PHP.ini file?
$_GET['Step']
is not working on an XP Pro system running under localhost.
I had to capatilize get to GET and it worked.
= )
Thanks. Does this GET thing work with the older versions on PHP?
For older versions use $HTTP_GET_VARS[var];
and PHP4 $_GET[var];