|
Server : Apache/2.4.62 System : FreeBSD fbsdweb2.web.rcn.net 14.1-RELEASE FreeBSD 14.1-RELEASE releng/14.1-n267679-10e31f0946d8 GENERIC amd64 User : www ( 80) PHP Version : 8.3.8 Disable Function : NONE Directory : /domains/chsweb/news_retired/ |
Upload File : |
<?php
// script to send mail back to CHS
/*
FORM FIELDS:
*/
$subject = $_POST['subject']; // subject line of mail message
$redirect = $_POST['redirect']; // what page to redirect upon successful completion
$recipient = $_POST['recipient']; // CHS' email address to send to
$FirstName = $_POST['FirstName']; // contact's first name
$Title = $_POST['Title']; // contact's title
$LastName = $_POST['LastName']; // contact's last name
$Company = $_POST['Company']; // company name where contact is employed
$Salutation = $_POST['Salutation']; // Mr. | Mr.s | Ms.
$email = $_POST['email_addr']; // contact's email address
$Address = $_POST['Address']; // mailing address
$City = $_POST['City']; // city
$State = $_POST['State']; // dropdownlist of states
$Zip = $_POST['Zip']; // postal code
$Phone = $_POST['Phone']; // contact's phone #
$Ext = $_POST['Ext']; // phone extension
$Fax = $_POST['Fax']; // fax #
$Background = $_POST['Background']; // selected background
$Other = $_POST['Other']; // comments
$msg = "Name: \r\n=====\r\n".$Salutation." ".$FirstName." ".$LastName."\r\n\r\n";
$msg .= "Title: \r\n======\r\n$Title\r\n\r\n";
$msg .= "Company: \r\n========\r\n$Company\r\n\r\n";
$msg .= "Address: \r\n========\r\n$Address\r\n$City, $State $Zip\r\n\r\n";
$msg .= "Email Address: \r\n==============\r\n$email\r\n\r\n";
$msg .= "Phone: \r\n======\r\n$Phone Ext. $Ext\r\n\r\n";
$msg .= "Fax: \r\n====\r\n$Fax\r\n\r\n";
$msg .= "Background: \r\n===========\r\n$Background\r\n\r\n";
$msg .= "Comments: \r\n=========\r\n$Other\r\n\r\n";
// create message and send
mail("[email protected]", $subject, $msg);
?>
<html>
<head>
<script type="text/javascript">
window.location = 'http://www.gradycampbell.com/_client/chs/CH105/20101014-1454/news/thanks.html';
</script>
</head>
</html>