on 02/01/03 9:46 AM, Andrew Williams ([EMAIL PROTECTED]) wrote: > I have been messing with PHP 4 on a windows 2000 machine using apache and am > having trouble getting sessions to run.
I'm going to assume PHP > 4.1 ???? I'm also going to assume you're allowing cookies on your browser??? > session_register_var.php change your script to: <? // set up a session session_start(); // register the variable to the session $_SESSION['my_favourite_colour'] = "blue"; // show a hyperlink to get to the next page echo "<A HREF='show_session_var.php'>Click here to go to the next page</A>"; ?> > and > show_session_var.php change this script to: <? // continue using the session session_start(); // show the variable's value echo "My favourite colour is... ".$_SESSION['my_favourite_colour']; ?> lemme know how you go Justin French -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php