A-Tractor Works
4175 62nd Avenue North
Pinellas Park, FL 33781
(727) 527-8159
atractorworks@gmail.com




"; echo ""; echo "Email us your questions"; echo "

"; echo ""; echo "
"; echo ""; echo "
"; echo ""; echo "
"; echo ""; echo "
"; echo "
"; echo "
"; echo "
"; echo "
"; echo ""; } //here to send email else if($action=="send") { // get posted data into local variables $Name=@$_REQUEST["Name"]; $Phone=@$_REQUEST["Phone"]; $Email=@$_REQUEST["Email"]; $Message=@$_REQUEST["Message"]; $Subject="Inquiry from Website"; //validation submitted data $validationOK=true; if (Trim($Name)=="") $validationOK=false; if (Trim($Phone)=="") $validationOK=false; if (Trim($Email)=="") $validationOK=false; if (Trim($Message)=="") $validationOK=false; if (!$validationOK) { echo "Data Validation Error"; echo "

"; echo "We are sorry, but you have not provided data in the form we were expecting. Please try again."; echo "
"; print ""; exit; } //set mailer addresses - these email accounts MUST exist on MAIL SERVER! $EmailFrom = "web@atractorworks.com"; //$EmailTo = "getloaded@atractorworks.com"; $EmailTo = "atractorworks@gmail.com"; // prepare email body text $Body = "You have received the following inquiry via your website:\n\n"; $Body .= "Name: " . $Name . "\n"; $Body .= "Telephone: " . $Phone . "\n"; $Body .= "Email: " . $Email . "\n"; $Body .= "Message:\n" . $Message; //send email //$success = mail($EmailTo, $Subject, $Body, "From: <$EmailFrom>"); $success = true; //redirect to success page //this is HTML code to make the browser auto-redirect to THIS page again //notice the action parameters used to indicate what the page is to do upon redirection if ($success){ print ""; } else{ print ""; } } //back from successful sending else if ($action=="sent") { echo "Message Submittal Successful"; echo "

"; echo("
Thank you, ".@$_REQUEST["name"].", for taking the time to email us. Your contact information has been submitted to us and if all of the information submitted is accurate, one of our representatives will contact you within one business day."); echo "
"; print ""; } //back from failure in sending else if ($action=="error") { echo "Message Submittal Failure"; echo "

"; echo("
Thank you, ".@$_REQUEST["name"].", for taking the time to email us. Unfortunately, your contact info was not submitted to us but we hope you will try again later. If this problem persists, we ask that you please contact us using the phone numbers listed in our snail-mail section."); echo "
"; print ""; } ?>
View Larger Map Home About Products Testimonials Contact
Home I About I Products I Testimonials I Contact I FAQ I Tips I Links
© 2010 A-Tractor Works. All Rights Reserved. Web Design by brand-formation.com. Hosting by breesoft.com.