|
» W3Exchange http://www.w3exchange.com/index.html » PHP http://www.w3exchange.com/view_forum-id-36.html » Cannot Modify Header Information http://www.w3exchange.com/view_topic-id-225.html |
| pureDesi - 2006-09-30 23:05:07 |
Ok, I have a problem that I'm guessing has a very simple fix. But I can't seem to find it. Code::<?
setcookie("test", "", time()-30);
setcookie("test", $_GET['value'], time()+30);
echo $HTTP_COOKIE_VARS["test"];
?>When I run it the first time, it's fine, but then everytime after that I get the following error message: Code::Warning: Cannot modify header information - headers already sent by (output started at /home2/monkey/public_html/main/test.html:3) in /home2/monkey/public_html/main/test.html on line 3 Anybody know what's wrong? :wacko: |
» Print this topic |