Can someone please help me I have made an example, of an cookies I have added a value 45 but i have created another page that displays. This prob is when i run the code that has the value 45 its suppose to give me a blank page byut i get this error on my browser
"Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\lesson\cookies\cookies.php:6) in C:\xampp\htdocs\lesson\cookies\cookies.php on line 11"
this is the code i put the cookie its suppose to just give a blank page but the value is stored in the cookie
<?php
setcookie('test',45, time()+(60*60*24+7));
?>