validate_fields("name, companyname, address1,city,state,zipcode,telephone,email,quoteinfo")) { // The form validated // print("Thanks for filling in all the required fields
\n"); // print("Try Again
\n"); // print("\n"); $sendto = "sales@allrite.com"; $subject = "Request for Quote from Website"; $orderfrom = "From: Website generated Request For Quote "; $message = ""; $message .= "RFQ From:\n"; $message .= "---------------------------------------------------------\n"; $message .= "Company: " . $_POST['companyname'] ."\n"; $message .= "Name: " . $_POST['name'] ."\n"; $message .= "Addr1: " . $_POST['address1'] ."\n"; $message .= "Addr2: " . $_POST['address2'] ."\n"; $message .= "City: " . $_POST['city'] ."\n"; $message .= "State: " . $_POST['state'] ."\n"; $message .= "Zip: " . $_POST['zipcode'] ."\n"; $message .= "Phone: " . $_POST['telephone'] ."\n"; $message .= "Fax: " . $_POST['fax'] ."\n"; $message .= "Email: " . $_POST['email'] ."\n"; $message .= "---------------------------------------------------------\n"; $message .= "Quote Info: \n"; $message .= $_POST['quoteinfo'] ."\n"; mail($sendto,$subject,$message,$orderfrom); header("location: http://www.allrite.com/rfqthankyou.html"); exit; } else { $error=1; // ERROR HANDLING can be done 2 ways // [1] The form did NOT validate, so we can print the error message // using either the english HTML formatted $obj->error... // print("Please fill in the required fields.

"); // [2] ... OR, handle the error messaging by looping through the array // of null fields returned by $this->error_array. #print_r ($my_form->error_array['missing_fields']); } } // Print the form ?> Request a Quote to make Springs to your specifications
* indicates required field
Your Name: *
Company Name: *
Address Line 1: *
Address Line 2:
City/State/Zip *
   
Telephone *   Fax:
Email Address *
   
Description of spring that you are interested in with required quantities. * Please fill in the required fields."; } } ?>