I am trying to add a cookie with the following code but i keep getting these errors can someone help me please thanks in advance
<?php
$POST['username'] = stripslashes($POST['username']);
$hour = time() + 3600;
setcookie(ID_my_site,$POST['username'],$hour);
setcookie(Key_my_site,$POST['pass'],$hour);
//then redirect them to the members area
echo "<script>document.location.href='members.php'</script>";
echo "<script>'Content-type: application/octet-stream'</script>";
?>
Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\cookie.php:5) in C:\xampp\htdocs\cookie.php on line 8
Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\cookie.php:5) in C:\xampp\htdocs\cookie.php on line 9