I'm trying to encapsulate my whole page in tables. Since starting this, one of my pages (Login screen) spits out this error:
Warning: Cannot add header information - headers already sent by (output started at /home/html/index.php:8) in /home/html/index.php on line 30
Now does anybody know how to fix this? Here is line 30:
if ($username == "admin") {
if ($password == $checkPass) {
30-> header("Location: main.php");
}
}
Any help is greatly appreciated.