Click to See Complete Forum and Search --> : posting variables


Anon
06-21-2002, 05:52 AM
I'm running apache/php4/mySQL in windowsXP-home. Everything seems to work except that I can't post variables from one page to another.

ex:
http://localhost/test.php?thing=something
(or actually posting it from an earlier page)

(script:
<?php
echo $thing;
?>
)

I get an "undefined variable" notice...

something in the php.ini maybe
(I assumed the track_vars is standard on in the latest php)

thanks a lot,

Jan Robert

Anon
06-21-2002, 06:17 AM
set register_globals to on in php.ini or
echo $_GETS["thing"]; in your script