if($_POST['submit'] == "Submit") { if(($_POST['comm'] != "") && ($_POST['comm'] != "")) { $to = 'innovators@aol.com'; // change to match email address for person recieving this notification. $subject = 'Request from Website'; // insert your own subject line for the email. $message = "Name:" . "\n"; $message .= "Email Address:" . "\n"; $message .= "Requested Information: " . $_POST['comm'] . "\n"; $newLocation = "index.html"; // file that displays a thank you message. $headers = "From: " . " Responses\r\n" . 'Reply-To: ' . $_POST['comm'] . "\r\n" . 'Return-Path: ' . $_POST['comm'] . "\n" . 'X-Mailer: PHP/' . phpversion(); if(mail($to, $subject, $message, $headers)) { header("Location: $newLocation"); } } else { $message1 = "Please fill in the required fields"; } } ?>
|
|
||||
Submit Comments |
||||
|
|
||||
|
|
||||