You forgot the session_start(); call. You will have to do that before you
can tap into registered vars. Hope that helps.
"Alexander Ross" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I'm trying to understand sessions so I can set session variables. I set up
> very simple pages:
> Page 1:
> $test_var = "froggy";
> <a href="page2.php">Click here</a>
> Page 2:
> print $test_var."!";
> This doesn't seem to work though. $test_var doesn't seem to have a value
> when I go the second page. What am I missing. Thanks for helping a
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php