Headers and Redirects
Posted: Thu Apr 03, 2003 3:22 pm
Hello.
I have a question about headers. At what point in the program are they sent? Here is my code:
And this is the error:
How do I got about fixing this? Also, Is there some kind of a delay function in PHP? I want the user to be able to see the message before they are re-directed, kind of like PHPBB.
Thanks.
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.