I am receiving this error when I try to redirect to another page in my web site.
Cannot modify header information - headers already sent by
I've identify that the problem is with this code.
if (!isset($_SESSION['admin']) || $_SESSION['admin'] != true) {
header ("Location: ['HTTP_HOST']."/login.php?category=a");
exit;
}
Can anyone tell me if I am missing something here?
Cannot modify header information - headers already sent by
I've identify that the problem is with this code.
if (!isset($_SESSION['admin']) || $_SESSION['admin'] != true) {
header ("Location: ['HTTP_HOST']."/login.php?category=a");
exit;
}
Can anyone tell me if I am missing something here?