"; $subject = 'Contact Form: '.$_POST['subject']; $body = $_POST['msg']."\n\nSigned\n".$_POST['name']; mail($to, $subject, $body, $from); # redirect page to new location (can NOT have any echo lines before this) header( 'Location: http://salogic.net/contact_thankyou.html' ) ; } } # end if POST ?>