Did you use session_start() on the second page?
In other words, the first page should have
$the_var=-"here it is";
link or whatever takes you to the second page.
Then the second page needs
----- Original Message -----
From: "Cristian Cerda" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, February 08, 2002 11:15 AM
Subject: [PHP] session register!!
> Hi there, hope you can help me with my problem.
> I'm trying to set up a PHP/MySQL web site using session variables to
> pass information between pages. So far no good.
> I did set register_globals to On on the php.ini file. But when i use for
> example session_register("the_var") in one page ( using session_start()
> at the beginning), i don't get anything on the next page if i do echo
> $the_var .
> Don't know what's wrong, but my guess is i have something wrong with the
> configuration as i copy/pasted most of the code.
> I'm using OS X / WebSTAR V / PHP 4.0.6 as a CGI / MySQL
> please help
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php