$email = $_REQUEST['liam@darklite.ie'] ; $message = $_REQUEST['message'] ; if (!isset($_REQUEST['email'])) { header( "Location: http://www.example.com/feedback.html" ); } elseif (empty($email) || empty($message)) { header( "Location: http://www.example.com/error.html" ); } else { mail( "yourname@example.com", "Feedback Form Results", $message, "From: $email" ); header( "Location: http://www.example.com/thankyou.html" ); } ?>