A simple problem so I thought...
Setting a cookie in a php file like so:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<?
// set cookies
setcookie ("gamelevel", "jv", time()+3600, "/");
if(isset($_COOKIE['gamelevel']))
{
echo "Cookie is set ";
}
?>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>JV Football Concessions</title>
will not set the cookie. I get an error stating "Cannot modify header information - headers already sent by...". When I look this up it tells me to look for blank space after my php, which I've done throughout my code. I can go into Firefox alsoand it is not set. And I have cookied enabled in my browser. Any other ideas?