I am trying to make a page that displays a users name after they have logged in. The code i am using for that is...
<? php echo $_SESSION['User']; ?>
on the login page the code that sets the value of the session is...
session_start();
if (isset($HTTP_POST_VARS['user_name'])) {$User = $HTTP_POST_VARS['user_name'];
session_register("User"); }
The page that is meant to display the user's username displays nothing. Can anyone help?