I’m just starting out with PHP and am working on setting cookies. Here is the code I enter when I get a “Warning: Cannot modify header information - headers already sent by (output started at /home/unknown/public_html/julian/phpcookie.php:8) in /home/unknown/public_html/julian/phpcookie.php on line 10":
Warning: Cannot modify header information - headers already sent by (output started at /home/unknown/public_html/julian/php/phpcookie.php:8) in /home/unknown/public_html/julian/php/phpcookie.php on line 8
Well I got it all working but now I have one more question.
How would I go about setting the cookie var that is currectly “Datapimp”. I am trying to make a login script in PHP so that the cookie content is inserted by a input box.
I’ve been looking around php.net as how to do that but maybe you know off hand.