Code: Select all
$_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
header("Location: member.php");
Thats the code... I get error for last three lines
Warning: Cannot modify header information - headers already sent by (output started at.................................. C:\project\websites\bb\check.php line 62
Warning: Cannot modify header information - headers already sent by (output started at.................................. C:\project\websites\bb\check.php line 63
Warning: Cannot modify header information - headers already sent by (output started at.................................. C:\project\websites\bb\check.php line 66