There were problems with the following fields:\n
";
require_once "$myhome/mtinclude/validate.inc";
$valid = TRUE;
if( isset($_POST["submit_button"]) )
$valid = validate();
if( $err_msg != "
There were problems with the following fields:
\n
" )
{
echo "
\n";
echo $err_msg;
echo " |
\n
\n";
}
if( isset($_POST["submit_button"]) && $valid )
{
$email = _INPUT('Email0Address_required_email');
$first_name = _INPUT('First0Name_required_alphabetic');
$last_name = _INPUT('Last0Name_required_alphabetic');
$street1 = _INPUT('Address0Line01_address');
if( isset($_POST["Address0Line02_address"]) )
{
$street2 = _INPUT('Address0Line02_address');
}
$city = _INPUT('City_alphabetic');
$state = _INPUT('State');
$zip = _INPUT('ZIP0Code_uszip');
$phone = _INPUT('Telephone0Number_usphone');
$comments = _INPUT('Customer0Comment_required_comment');
$headers = "From: " . $email . "\r\n" .
"Bcc: hardy@marictiming.com\r\n";
$to = "customerservice@marictiming.com";
$subject = "Maric Timing Info Requested";
$message = "Name: " . $first_name . " " . $last_name . "\r\n" .
"Company: " . $cname . "\r\n" .
"Address: " . $street1 . "\r\n" .
" " . $street2 ."\r\n" .
"City: " . $city . "\tState: " . $state . "\r\n" .
"Email: " . $email . "\r\n" .
"Phone: " . $phone . "\r\n" .
"Comments: " . "\r\n" .
$comments . "\r\n";
mail($to, $subject, $message, $headers);
?>
Thank you for contacting Maric Timing. We will be in contact with you shortly.
Contact Us
-OR-
Send Us Your Comments and Questions