Hi, devinemke,
Thanks for the reply...
The first page has the following original script:
<?php #session_start();
if($font_family != null)
{
if( ! session_is_registered("session_font") )
{ session_register("session_font"); }
$session_font = $font_family;
header("Location:prefs2.php?".SID);
exit();
}
?>
<html><head><title>Session preferences</title></head>
<body>
<h3>Select Your Preferred Font Family</h3>
<form action="<?php echo($PHP_SELF); ?>" method="post">
<input type="radio" name="font_family" value="serif">Serif
<input type="radio" name="font_family" value="sans-serif">Sans-Serif
<input type="radio" name="font_family" value="monospace">Monospace
<input type="radio" name="font_family" value="cursive">Cursive
<input type="radio" name="font_family" value="fantasy">Fantasy
<br/><br/>
<input type="submit" value="Submit">
</form>
</body></html>
I added the following script before the above original code...
<?php
// Emulate register_globals on
if (!ini_get('register_globals')) {
$superglobals = array($SERVER, $ENV,
$FILES, $COOKIE, $POST, $GET);
if (isset($SESSION)) {
array_unshift($superglobals, $SESSION);
}
foreach ($superglobals as $superglobal) {
extract($superglobal, EXTR_SKIP);
}
}
?>
so the current page now looks like this...
<?php
// Emulate register_globals on
if (!ini_get('register_globals')) {
$superglobals = array($SERVER, $ENV,
$FILES, $COOKIE, $POST, $GET);
if (isset($SESSION)) {
array_unshift($superglobals, $SESSION);
}
foreach ($superglobals as $superglobal) {
extract($superglobal, EXTR_SKIP);
}
}
#session_start();
if($font_family != null)
{
if( ! session_is_registered("session_font") )
{ session_register("session_font"); }
$session_font = $font_family;
header("Location:prefs2.php?".SID);
exit();
}
?>
<html><head><title>Session preferences</title></head>
<body>
<h3>Select Your Preferred Font Family</h3>
<form action="<?php echo($PHP_SELF); ?>" method="post">
<input type="radio" name="font_family" value="serif">Serif
<input type="radio" name="font_family" value="sans-serif">Sans-Serif
<input type="radio" name="font_family" value="monospace">Monospace
<input type="radio" name="font_family" value="cursive">Cursive
<input type="radio" name="font_family" value="fantasy">Fantasy
<br/><br/>
<input type="submit" value="Submit">
</form>
</body></html>