its just a simple one page php file
<?
session_start();
include_once("./functions/database.php");
$conn = db_connect();
$temp = $_POST['remove'];
foreach ($temp as $key => $remove) {
if ($remove == 1) {
$query = mysql_query("delete from leave2003db where id = '$key'");
}
}
header("Location: " . $_SERVER['HTTP_REFERER']);
?>
It errors that header had been sent on line 12 which is header("location: " $_server.....
Did i do something wrong or mis understood headers? Because I tot I have yet to send any http headers when I did not echo anything.