-
Cookie Problem!
http://www.questfor3d.com/loginscript.php
Warning: Cannot modify header information - headers already sent by (output started at /home/content/d/a/m/damasterjo/html/loginscript.php:3) in /home/content/d/a/m/damasterjo/html/loginscript.php on line 88
line 88
setcookie("UsersName", $NName, time()+604800);
$NName is proper
-
Re: Cookie Problem!
Cookies have to be set before anything else has been written on your page.
do you echo anything before you set your cookie?
-
Re: Cookie Problem!
Line 88 is fine but as Lintz says you cannot send any data before the headers and a cookie is a header.
Look at the error message again:
(output started at /home/content/d/a/m/damasterjo/html/loginscript.php:3)
The highlighted bit tells you where the data is being sent, you need to correct that bit.
-
Re: Cookie Problem!
No Matter Where I set the cookie, it gives me mod header information. So stupid, anyway, if you see this Damasterjo, I moved all the scripts into a subdir "phptest" so for the scripts:
http://www.questfor3d.com/phptest/phptest.php