i made a login script right and when i click submit it says
Warning: Cannot add header information - headers already sent by (output started at /home/httpd/babesoncams.com/html/handlelogin.php:8) in /home/httpd/babesoncams.com/html/handlelogin.php on line 14
heres my code for that handlelogin.php
<?php
if (($UserName == "Larry") &&
($password == "LarryPass")) {
header ("Location: index.php?UserName=$UserName");
exit;
} else {
header ("Location: login.php?Message=Invalid");
exit;
}
?>
if anyone can help id appreciate it