Page 1 of 1

Error Handling

Posted: Mon Jun 18, 2007 7:28 am
by haseebmaqsood
Hi

I am Haseeb trying to develop a website, I have to face a problem and i can't able to handle it.
I am using HEADER method

<?
if(isset($_POST['title']))
{
$title=$_POST["title"];
mysql_query("INSERT INTO categoriesinfo(title) Values('$title')");
header("Location: categories.php?msg=Added");
}
?>

and i have to face an error

Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\AdminPanel\addCategory.php:12) in C:\xampp\htdocs\AdminPanel\addCategory.php on line 19
Add Category

Posted: Mon Jun 18, 2007 7:32 am
by volka