was wondering why the colors do not show up on the screen after i use this code....
<?
session_start();
?>
<html>
<head>
<title>View your settings</title>
<style type ="text/css">
p, u1, h3 (font-family: veranda, helvetica, sans-serif;)
.Enabled (font-weight: bold; color: green;)
.Disabled (font-weight: bold; color: red;)
</style>
</head>
<body>
<h3>Veiw your settings</h3>
<p>Hello <b><?=$_SESSION['first']?> <?=$_SESSION['last']?></b>
<p>Email: <?=$_SESSION['email']?>
<p>Your settings:<ul>
<?
while(list($key, $value) = each($_SESSION['news_prefs']))
{
if($value)
{
$value = "Enabled";
} else {
$value = "Disabled";
}
print("<li class=.$value>$key: $value</li>");
}
?>
</ul>
</body>
</html>
dont know if you will need the first file or not, but here it is
<?
session_start();
?>
<html>
<head>
<title>Welcome</title>
<style type="text/css">
p, u1, h3 (font-family: veranda, helvetica, sans-serif;)
.enabled (font-weight: boldl; color: green;)
.disabled (font-weight: bold; color: red;)
</style>
</head>
<body>
<?
function load_user_data()
{
global $first, $last, $email, $news_prefs;
$_SESSION['first'] = "Faye";
$_SESSION['last'] = "Valentine";
$_SESSION['email'] = "faye@bebop.com";
$_SESSION['news_prefs'] = array(
"Local" => 0,
"Nation" =>1,
"World" => 1,
"Comics" => 0,
);
}
load_user_data();
?>
<h3>Welcome</h3>
<p>Welcome back <b><?=$_SESSION['first']?></b>
<p>Your settings have been loaded.
<p><a href=track_prefs2.php>View your settings</a>.
</body>
</html>