Lowest Total Order Cost Guarantee Inquiry

add('label', 'label_product', 'product', 'Which PENSRUS product:'); $obj = & $form->add('textarea', 'product'); $obj->set_rule(array( 'required' => array('error', 'Product is required!'), 'length' => array(0, 220, 'error', 'Maximum length is 220 characters!', true) )); // the label for the "vendor" element $form->add('label', 'label_vendor', 'vendor', 'Vendor:'); // add the "name" element // the "&" symbol is there so that $obj will be a reference to the object in PHP 4 // for PHP 5+ there is no need for it $obj = & $form->add('text', 'vendor'); // set rules $obj->set_rule(array( // error messages will be sent to a variable called "error", usable in custom templates 'required' => array('error', 'Vendor is required!') )); $form->add('note', 'note_vendor', 'vendor', 'Name of vendor you want to compare'); // the label for the "compare" element $form->add('label', 'label_compare', 'compare', 'Vendors comparable product:'); // add the "name" element // the "&" symbol is there so that $obj will be a reference to the object in PHP 4 // for PHP 5+ there is no need for it $obj = & $form->add('text', 'compare'); // set rules $obj->set_rule(array( // error messages will be sent to a variable called "error", usable in custom templates 'required' => array('error', 'Comparable product name is required!') )); $form->add('note', 'note_compare', 'compare', 'Which product from the vendor you entered?'); // the label for the "quantity" element $form->add('label', 'label_quantity', 'quantity', 'Quantity needed:'); // add the "name" element // the "&" symbol is there so that $obj will be a reference to the object in PHP 4 // for PHP 5+ there is no need for it $obj = & $form->add('text', 'quantity'); // set rules $obj->set_rule(array( // error messages will be sent to a variable called "error", usable in custom templates 'required' => array('error', 'Quantity is required!') )); $form->add('note', 'note_quantity', 'quantity', 'This is important for volume pricing'); // the label for the "name" element $form->add('label', 'label_name', 'name', 'Your name:'); // add the "name" element // the "&" symbol is there so that $obj will be a reference to the object in PHP 4 // for PHP 5+ there is no need for it $obj = & $form->add('text', 'name'); // set rules $obj->set_rule(array( // error messages will be sent to a variable called "error", usable in custom templates 'required' => array('error', 'Name is required!') )); $form->add('note', 'note_name', 'name', 'Your name or name of person we should contact'); // "email" $form->add('label', 'label_email', 'email', 'Your email address:'); $obj = & $form->add('text', 'email'); $obj->set_rule(array( 'required' => array('error', 'Email is required!'), 'email' => array('error', 'Email address seems to be invalid!'), )); // the label for the "phone" element $form->add('label', 'label_phone', 'phone', 'Phone number:'); // add the "phone" element // the "&" symbol is there so that $obj will be a reference to the object in PHP 4 // for PHP 5+ there is no need for it $obj = & $form->add('text', 'phone'); $obj->set_rule(array( 'required' => array('error', 'Phone is required!'), )); $form->add('note', 'note_phone', 'phone', 'Include extension number if needed'); // "captcha" $form->add('captcha', 'captcha_image', 'captcha_code'); $form->add('label', 'label_captcha_code', 'captcha_code', 'Are you human?'); $obj = & $form->add('text', 'captcha_code'); $form->add('note', 'note_captcha', 'captcha_code', 'You must enter the characters with black color that stand out from the other characters', array('style'=>'width: 200px')); $obj->set_rule(array( 'required' => array('error', 'Captcha is required!'), 'captcha' => array('error', 'Characters from image entered incorrectly!') )); // "submit" $form->add('submit', 'btnsubmit', 'Submit'); // if the form is valid if ($form->validate()) { // show results // Turn on error reporting. Handy for debugging. error_reporting(E_ALL ^ E_NOTICE); // I find including the time/date useful for record-keeping. // Note that it is the web server's time/date, not yours // or the sender's. $date = date("l jS F Y, g:i A"); // Get the form fields. $name = $_POST['name']; $email = $_POST['email']; $phone = $_POST['phone']; $product = $_POST['product']; $vendor = $_POST['vendor']; $compare = $_POST['compare']; $quantity = $_POST['quantity']; // The following parameters are pretty much all that you // need to change except for the format of the email message // below. Note that your mail server may require the mailTo // address be in the host domain. $mailTo = "quotes@pensrus.com"; // The address that will receive form submissions $mailSubject = "$name Price Match Request" ; // Whatever you want $mailHost = "mail.pensrus.com"; // Usually looks like mail.yourhost.com $mailPort = "25"; // Usually 25 $mailAuth = true; // "true" if your mail server requires authentication, "false" if not $mailPassword = "!r@@W_.JVE{}"; // The mail password associated with $mailTo // Note that for security reasons it is HIGHLY recommended // that you set the above in this PHP file and NOT pass // them as form parameters. If you want to send to different // email addresses depending upon form field values, pass a // parameter that doesn't contain login info with // conditional statements in this file. // If you want to get cookies values... // $myCookie = $_COOKIE["cookiename"]; // Build the email. $body = " Date: $date Name: $name Email: $email Phone: $phone PENSRUS Product: $product Quantity: $quantity Vendor: $vendor Prod. to Compare: $compare"; include("Mail.php"); $headers["From"] = $mailTo; $headers["Reply-To"] = $email; $headers["To"] = $mailTo; $headers["Subject"] = $mailSubject; $params["host"] = $mailHost; $params["port"] = $mailPort; $params["auth"] = $mailAuth; $params["username"] = $mailTo; $params["password"] = $mailPassword; $mail_object =& Mail::factory("smtp", $params); $mail_object->send($mailTo, $headers, $body); ?>

Thank You

Thank you for submitting a Price Comparison Request. We will be in touch with you shortly.

Close this browser tab to return to our Web site.

render(); ?>