On Saturday 13 April 2002 12:01 am, you wrote:
> Hi,
>
> If I have register_globals=off, how do I pass session variables? I tried
> session_register("var1"). session_is_registered("var1") appears successful,
> but if I tried to echo the $var1". Nothing shows. How do I pass session
> variables?
>
> Thanks,
> Norman

Try this:
<?php echo($_SESSION['var1']); ?>

Also read the manual for more information on session handling functions.
http://www.php.net/manual/en/ref.session.php

Regards,
Oliver.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to