headers
Posted: Tue Jan 24, 2006 12:56 pm
k, this is probably a stupid question, but i've had 2 different results and it makes no sense to me.
On my personal server, i can put a header (Location) in the body,
But on my works server, I get this error:
On my personal server, i can put a header (Location) in the body,
But on my works server, I get this error:
This is the loop, it's after the head:Warning: Cannot modify header information - headers already sent by (output started at F:\www\vhosts\honeycomb.com\httpdocs\it\user\add_it.php:1) in F:\www\vhosts\honeycomb.com\httpdocs\it\user\add_it.php on line 91
Code: Select all
if($_POST['bpress']=="add")
{
$str2 = str_replace("\r\n", "<br>", $_POST['notes']);
$sql = "INSERT INTO it_issues (
Issue_Title,
Issue_Status,
Issue_Priority,
Issue_Dept,
Issue_Mem,
Issue_Type,
Issue_Date,
Issue_Read,
Issue_Solution,
Issue_Notes,
Issue_Track,
Issue_URL)
VALUES (
'".$_POST["title"]."',
'".$_POST["status"]."',
'".$_POST["priority"]."',
'".$_POST["dept"]."',
'".$_POST["mem"]."',
'".$_POST["type"]."',
'".$_POST["date"]."',
'".$_POST["read"]."',
'".$_POST["solution"]."',
'".$str2."',
'".$_POST["track"]."',
'".$_POST["url"]."')";
$result = mysql_query($sql) or die (mysql_error());
include("mail.php");
header("Location: http://www.advantageboard.com/it/list_it.php");
exit;
}