All header commands need to be sent before you send any text, including HTML, whitespace, PHP echo/print, etc.
<?php ob_start(); $email = $_REQUEST['email'] ; $message = $_REQUEST['message'] ; mail( "email@example.com", "Feedback Form Results", $message, "From: $email" ); header( "Location: thankyou.html" ); ?>
Nostimos said:Do you mean that it has to be the first function in the php code?
Thats probably what you did. Try checking your script and see if there are lines before the "<?php", so that "<?php" appears as your first lineswirlee said:before any whitespace.