Hey all,
I am having a problem that maybe some of you have had as well. I am
using a session and when I pass the session variable to the next page it
comes back as undefined. Is there some new syntax in 4.2.1 that I am
missing, I thought that I made all the necessary changes. Here is the
entire script:
<?php
session_start();
if(!session_is_registered("user")) {
header("Location: http://localhost/denied.htm");
exit;
}
?>
[snip] HTML CODE [snip]
<?php echo $user;?>
[snip] MORE HTML CODE [snip]
I am getting the error at the echo statement between the HTML code, saying
that $user is undefined. The previous page does register user.
I am running PHP 4.2.1-CGI, IIS 5, W2K SP2.
-josh
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php