if(!isset($_COOKIE['user']))
{
header("Location: <url>");
exit();
}
This is the first statement under the <body> tag of every page that calls it
but when I run it from the server it says:
Warning: Cannot modify header information - headers already sent by (output
started at <the include statement for the lines above> ) in <the header line
above>
Any ideas on how to resolve this are greatly welcomed because I am slightly
stumped. I dont know where the header information is being sent other than
the obvious call in the code above.
If you need more information to solve then just say.
Thanks in advance
James
<? 'do all your server side logic up here before headers are sent ?>
<html>
<head>
<title>This IS header information</title>
</head>
<body>
<p>It's too late now</p>
</body>
</html>
--
Adrienne Boswell at Home
Arbpen Web Site Design Services
http://www.cavalcade-of-coding.info
Please respond to the group so others can share