>From the manual: Remember that the header() function must be called before any actual output is sent, either by normal HTML tags blank lines in a file, or from PHP.
This is the cause of your error. Something is sending output before your call to header(); -- Justin Garrett "Don" <[EMAIL PROTECTED]> wrote in message 000c01c15f67$1a06ad80$[EMAIL PROTECTED]">news:000c01c15f67$1a06ad80$[EMAIL PROTECTED]... Hi, I have a form which when submitted, calls an html page which contains PHP code. Within that code, I wish to redirect my users to another page under certain conditions. So, in my code, I have the following lines: Header( "Location:http://www.mydomain.com/mypage.html"); exit; However, when the above is run, I get the following error generated: Warning: Cannot add header information - headers already sent by (output started at /usr/local/www/vhosts/mydomain.com/htdocs/mypage.html:7) in ../phpscript/general/formmail.php on line 100 Does anyone know what this error means? hanks, Don -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]