hello guys,
i got a error message when i tried to set the cookie of the login page.
it says: "Warning: Cannot modify header information - headers already sent by (output started at D:\xampp\htdocs\project\library\login.php:2) in D:\xampp\htdocs\project\library\login.php on line 95"
this is the code i added:
$POST['username'] = stripslashes($POST['username']);
$hour = time() + 3600;
setcookie(ID_my_site, $_POST['username'], $hour);
do you know what might cause this problem? thx.