Unable to use session variables. Any help? I tried (below)
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><title>Test of PHP</title></head><body>
<?php
$count=3;
if (!session_is_registered('count')) {
session_register("count");
$count = 0;
}
else { $count++; }
echo "count $count";
?>
<h1>123</h1>
</body>
</html>
Warning: Cannot send session cookie - headers already sent by (output started at /home/xxxx/public_html/test3.php:

in /home/xxxx/public_html/test3.php on line 12
Warning: Cannot send session cache limiter - headers already sent (output started at /home/xxxx/public_html/test3.php:

in /home/xxxx/public_html/test3.php on line 12
count 0
123
-------- and ------------
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><title>Test of PHP</title></head><body>
<?php
$count=4;
if (isset($HTTP_SESSION_VARS['count'])) {
$HTTP_SESSION_VARS['count']++;
}
else { $HTTP_SESSION_VARS['count'] = 0;
}
echo "count $count";
?>
<h1>124</h1>
</body>
</html>
count 4
124
--Wayne