Redirection when submitting a form

<form name="toSave" method="post"
<input type="text" name="title" size="20" /><br> 
<input type="text" name="newstext" size="20" />
<input type="submit" name="submit" value="submit" />

$db=mysql_connect("localhost", "user", "pass") or die("Could not connect to localhost."); 
mysql_select_db("alex", $db) or die("Could not find database alex");

$querySQL = mysql_query("insert into news (postdate, title, newstext) values (CURDATE(), '".$_POST['title']."', '".$_POST['newstext']."')");
if(!$querySQL) error_message(sql_error());  


I tried to insert an if statement for a header to a different page but they said a header is already in use on line 2…wtf mate?lol