All pastes #69981 Raw Edit

Unnamed

public text v1 · immutable
#69981 ·published 2006-06-23 17:05 UTC
rendered paste body
#
/ register.php - first script which will supposedly store the session variable and link to another page.
#
 
#
<?php
#
session_start();
#
$mycolor = "blue";
#
session_register("mycolor");
#
 
#
// echo '<a href="session.php">Click here to go to the next page.</a>';
#
echo "<a href=\"session.php\">Click here to go to the next page.</a>";
#
 
#
?>
#
 
#
// session.php, which will supposedly take the session variable and echo it out.
#
 
#
<?php
#
session_start();
#
echo 'My favorite color is ' . $mycolor;
#
 
#
?>