Triangle Manufacturing Co. -- Since 1922

Question and Comment Form

Please fill out the following and we will reply with the information you need.

Your Name:

Your E-Mail Address:

Your Phone Number:

Company Name:

Company Location:

Are you a

Retailer; Consumer; Manufacturer; Other?

How may we help you?:

If you cannot use this form, please email sales@triangle-oshkosh.com with your question.  Thank you.

"; // Initialize $send, etc to avoid warnings $send = ""; $name_err = ""; $email_err = ""; $message_err = ""; if ($_POST["op"] != "ds") { //they need to see the form echo "$form_block"; } else if ($_POST["op"] == "ds") { //check value of $_POST[sender_name] if ($_POST["sender_name"] == "") { $name_err ="Please enter your name!
"; $send ="no"; } //check value of $_POST[sender_email] if (($_POST["sender_email"] == "") && ($_POST["sender_phone"] == "")) { $email_err ="Please enter your e-mail address or phone number!
"; $send ="no"; } //check value of $_POST[message] if ($_POST["message"] == "") { $message_err ="Please enter a message!
"; $send ="no"; } if ($send != "no"){ //it is ok to send,so build the mail $msg ="E-MAIL SENT FROM WWW SITE \n"; $msg .="Sender's Name:$_POST[sender_name]\n"; $msg .="Sender's E-Mail:$_POST[sender_email]\n"; $msg .="Sender's Phone:$_POST[sender_phone]\n"; $msg .="Company:$_POST[Company]\n"; $msg .="Location:$_POST[Location]\n"; $msg .="Type of Company:$_POST[R1]\n"; $msg .="Message:$_POST[message]\n"; $to ="sales@triangle-oshkosh.com"; $subject ="Questions and Comments Form"; $mailheaders ="From: My Web Site \n"; $mailheaders .="Reply-To:$_POST[sender_email]\n"; //send the mail mail($to,$subject,$msg,$mailheaders); //display confirmation to user echo "

Thank you. Your message has been received!

"; } else if ($send =="no") { //print error messages echo "$name_err"; echo "$email_err"; echo "$message_err"; echo "$form_block"; } } ?>