Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- //gather the data from the form
- $email = $_REQUEST['email'] ;
- $message = $_REQUEST['message'] ;
- $to = "[email protected]";
- $subject = "Feedback Form Results";
- $headers = "From: .$email.\r\n";
- //send the email
- $send = mail($to, $subject, $message, $headers);
- //if the email is sent send to a new page
- if($send)
- {
- header( "Location: http://www.yardleypressurewash.com/Contact_us.html" );
- }
- //if the message is not sent send them an error
- else{
- echo "An error occurred sending your message!!";
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment