I'm try to make a php pages that checks for login info, creates a cookie, and then redirects the page. My problem is that i can't get the page redirected.
Here is code so far:
<?php
if ($Login == "l" && $Password == "p") {
header("Location: http://www.apple.com/");
exit;
}
?>
This is the error:
Warning: Cannot add header information - headers already sent by (output started at /home/fbec/public_html/admin/enter2.php:6) in /home/fbec/public_html/admin/enter2.php on line 13