|
||||
Contact UsIf ($_POST['submit'] == "Submit"){ $recipient = "usa@oaci.org"; if ($_POST["email"] == "") { $sender = "oacusa-website@oacusaold.com"; } else { $sender = $_POST["email"]; } $subject = "Inquiry from OAC USA Website"; $body = "Name: " . $_POST["name"] . "\r\n"; $body .= "Email: " . $_POST["email"] . "\r\n"; $body .= "NTopic: " . $_POST["topic"] . "\r\n"; $body .= "Message: " . $_POST['message']; $mail = mail($recipient,$subject,stripslashes($body), "From: ".$sender. "BCC: mharvey@c-stone.net"); echo "" . chr(10); if ($mail = "TRUE") { echo "Thank you for submitting your question or comment. "; } else { echo "There was a problem sending your message. Please go back and try again. "; } } Else { If ( isset($_GET['sub']) ) { $subject = $_GET['sub']; } Else { $subject = "question"; } ?>If you wish to contact us for more information, or to make a suggestion or comment, please fill out the form at the link below. All contact information is optional (although of course we cannot reply if you do not supply us with your email address.) } ?>
|
|
|||