Ok, Let's see if I learned anything....
----- Original Message ----- From: "Jas" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, May 13, 2002 2:30 AM Subject: [PHP] sessions <SNIP> > $msg = "<p class=\"content\">You have been authorized to make changes to the > web site.</p>"; > session_is_registered('u_name'); > session_is_registered('p_word'); $_SESSION['u_name'] = $u_name; $_SESSION['p_word'] = $p_word; > session_start(); ^^ Not to sure if you need this again, I doub't it. > } else { > header("Location: index.php"); > exit; > } > ?> > <html> > <body bgcolor="#FFFFFF" text="#000000"> > <?php echo $msg; ?><br> > <?php print (session_id()); ?><br> > <?php echo $u_name; ?><br> > <?php echo $p_word; ?><br> > <?php print (session_is_registered('u_name')); ?><br> > <?php print (session_is_registered('p_word')); ?><br> print ($_SESSION['u_name']); print ($_SESSION['p_word']); Syntax has not been double checked, so there might be a few errors, but you should be using $_SESSION['varname']; :) See, I actually do learn things aswell over time :) Thanks again for everyone who has helped me!!! My next set of questions will prob be on GDLib (I can feel this coming)... -- me -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php