I have a question about headers. At what point in the program are they sent? Here is my code:
Code: Select all
$query="INSERT INTO users (username, password, name, email, icq, msn, aim, location, interests, music) VALUES ('$username', '$password', '$name', '$email', '$icq', '$msn', '$aim', '$location', '$interests', '$music')";
$result=mysql_query ($query, $db);
echo "Submission successful, you have registered.";
header ("Location = index.php");Code: Select all
Warning: Cannot add header information - headers already sent by (output started at c:\apache\htdocs\pc-dna\logging.php:16) in c:\apache\htdocs\pc-dna\logging.php on line 24Thanks.