I still get this error with the following code.
Warning: Cannot add more header information - the header was already sent (header information may be added only before any output is generated from the script - check for text or whitespace outside PHP tags, or calls to functions that output text) in /home/slangdes/slangdesign-www/advice/input.php3 on line 14
CODE:
<?
$link=mysql_connect("localhost", "yyy", "yyy")
or die("Bad connection!");
mysql_select_db("yyy");
$ip=$REMOTE_ADDR;
$answered="n";
$id="NULL";
$message=addslashes($message);
$sql=mysql_query ("INSERT INTO question (name, message, email, ip, id, answered) VALUES ('$name', '$message', '$email', '$ip', '$id', '$answered')")
or die ("Did not work.");
mysql_close($link);
header ("Location: http://www.site.com/directory/index.php3");
?>