I have done this file as I'm not sure how to post it with-out just pasting it in the message window. This is the warning message I get and I have shown the two lines in my script it refers to. Warning: Cannot modify header information - headers already sent by (output started at E:\domains\r\.....com\user\htdocs\r.....\sform.php:180) in E:\domains\r\.....com\user\htdocs\r.....\sform.php on line 193 This is the code I use to extract the fields to the email address: // original old script #$to = $_REQUEST['sendto'] ; #$from = $_REQUEST['Email'] ; #$name = $_REQUEST['Member_Name'] ; $headers = "From: $from"; $subject = "Members Data ....com"; //changed to now use this as needed it not to show NOTICE:index messages of blank fields but it still does. $to = ( isset ($_REQUEST['sendto']) ? $_REQUEST['sendto'] : "default 'to' email goes here" ); $from = ( isset ($_REQUEST['Email']) ? $_REQUEST['sendto'] : "default 'from' email goes here" ) ; $name = ( isset ($_REQUEST['Member_Name']) ? $_REQUEST['Member_Name'] : "Default member name goes here" ) ; $headers = "From: $from"; $subject = "Members Data From RedSquareFinance.com"; $fields = array(); $fields{"Member_Name"} = "Members Name"; etc..etc.. //body of email to send to person with the extracted form data. [line 180] $body = "Thank-you.....:\n\n"; foreach($fields as $a => $b){ $body .= sprintf("%20s: %s\n",$b,$_REQUEST[$a]); } //headers and autoreply to show the user his data has been sent $headers2 = "From: someone@somewhere.com"; $subject2 = "Thank-you for filling...."; $autoreply = "Somebody will get back to you ...."; //I don't need these if or else statements as form is checked via .js file now if($from == '') {print "You have..Email";} else { if($name == '') {print "You have.. First Name, ...go back and try again";} else { $send = mail($to, $subject, $body, $headers); $send2 = mail($from, $subject2, $autoreply, $headers2); if($send) [Line 193] {header( "Location: http://www...com/r.../thankyou.html" );} else {print "We encountered an error sending your mail, please notify webmaster@..com"; } } } ?>