'sendmail', //use sendmail , smtp or mail 'smtphost' => '', //smtp host address 'smtpauth' => 'no', //smtp authentication yes or no 'smtpusr' => '', //SMTP username 'smtppwd' => '', //SMTP password 'to_email' => 'info@pro2s.com,thuy.tran@pro2s.com', //to email address 'subject' => 'Pro2s web registration', //email subject 'ishtml' => 'true', //is this mail html format ); //-------------------------------------------------------------------- /** * mail body layout */ function _get_body($_f){ //checkbox group 1 for($i=1; $i < 12; $i++){ $_f['chk'.$i] = ($_f['chk'.$i])? ' ' : 'χ '; } //checkbox group 2 for($i=1; $i < 17; $i++){ $_f['chk2_'.$i] = ($_f['chk2_'.$i])? ' ' : 'χ '; } return <<< html

Me:( * = required)

Title {$_f['title']}
First Name {$_f['firstname']} Last Name {$_f['lastname']}
Sector {$_f['sector']} if other, Please Specify {$_f['other']}
Phone {$_f['phone']} Fax {$_f['fax']}
Email {$_f['email']}

My Company:( * = required)

Facility {$_f['facility']}
Address {$_f['address']}
City {$_f['city']} State/Province {$_f['state']}
Zip/Postal Code {$_f['zip']}

For sample delivery purpose:

Number of Employees Requiring Protective Solutions {$_f['employees']}
Are you considering a POWDER-FREE environment? {$_f['powder']} If yes, how soon? {$_f['powdertime']}
Are you considering a LATEX-FREE environment? {$_f['latex']} If yes, how soon? {$_f['latextime']}

My Protective Solution Preferences:( * = required)

Critical Concerns in Protective Solutions
Primary Concern {$_f['primary']} Secondary Concern {$_f['secondary']}

Additional Concerns (optional, if any):
{$_f['chk1']} Latex Allergy {$_f['chk2']} Sensitivity {$_f['chk3']} Glove Fit
{$_f['chk4']} Powder Irritation {$_f['chk5']} Comfort {$_f['chk6']} Residue
{$_f['chk7']} Barrier Integrity {$_f['chk8']} Grip {$_f['chk9']} Dryness
{$_f['chk10']} Chemical Resistance {$_f['chk11']} Pricing Others : {$_f['concernothers']}

Please send me FREE SAMPLES of the following Pro2 Solutions:

Latex Free Solution Powder Free Solution Barrier Integrity Solution
{$_f['chk2_1']} Cranberry Nitrile PF {$_f['chk2_2']} Sigma PF {$_f['chk2_3']} Cranberry LP
{$_f['chk2_4']} Redwood Nitrile PF {$_f['chk2_5']} Cranberry PF {$_f['chk2_6']} Malaytex LP
{$_f['chk2_7']} Cranberry Vinyl PF {$_f['chk2_8']} Malaytex PF {$_f['chk2_9']} Redwood LP
{$_f['chk2_10']} Cranberry Vinyl LP {$_f['chk2_11']} Redwood PF    
{$_f['chk2_12']} Redwood Nitrile LP (Non-Medical) {$_f['chk2_13']} Perfect PF (Non-Medical) {$_f['chk2_14']} Perfect LP (Non-Medical)

Our standard sample packing comes with small, medium and large samples, please click here if you require x-small or x-large size samples:
{$_f['chk2_15']} x-small {$_f['chk2_16']} x-large
html; } //-------------------------------------------------------------------- /** * send mail function */ function _np_sendmail($from, $data){ //get phpmailer class require(dirname(__FILE__)."/lib/smtp/class.phpmailer.php"); $mail = new PHPMailer(); //check is using smtp or sendmail] if ($data["mailer"] == "smtp"){ $mail->IsSMTP(); // set mailer to use SMTP $mail->Host = $data["smtphost"]; // specify SMTP host //check auth needed if($data["smtpauth"] == "Y"){ $mail->SMTPAuth = true; // turn on SMTP authentication $mail->Username = $data["smtpusr"]; // SMTP username $mail->Password = $data["smtppwd"]; // SMTP password } } else if ($data["mailer"] == "smail"){ $mail->IsSendmail(); // set mailer to use sendmail } else { $mail->IsMail(); // set mailer to use mail } //set from email and name $mail->From = $from["email"]; $mail->FromName = $from["title"].' '.$from["firstname"].' '.$from["lastname"]; //set reply to $mail->AddReplyTo($from["email"], $mail->FromName); //set to address $to = $data['to_email']; $mail->AddAddress($to); $mail->WordWrap = 60; // set word wrap to 50 characters //content type is html $html = false; if($data['ishtml']){ $mail->IsHTML(true); }else{ $mail->IsHTML(false); } // set email format to HTML //set subject $mail->Subject = $data['subject']; //get lib filter class require(dirname(__FILE__)."/lib/lib_filter.cls.php"); //get body layout $body = _get_body($from); //set body content and alt content //filter clear html tag $altbody = _np_getclearcontents($body); $altbody = nl2br($altbody); $mail->Body = $body; $mail->AltBody = $altbody; error_reporting(E_ALL ^ E_WARNING); if(!$mail->Send()) { error_reporting(E_ALL); return false; } error_reporting(E_ALL); return true; } //-------------------------------------------------------------------- /** * get request parameter * @return param value if found else return default value */ function _get_param($arr, $key, $default=""){ return isset($arr[$key])? $arr[$key] : $default; } //-------------------------------------------------------------------- /** * Title option list * @return param title option */ function _opt_title($sel) { $t = array('Dr.', 'Mr.', 'Mrs.', 'Ms.'); $str = ''; return $str; } //-------------------------------------------------------------------- /** * Sector option list * @return param Sector option */ function _opt_sector($sel) { $t = array('Dental', 'Medical', 'Laboratory', 'Alternative Care', 'Auto', 'Food', 'Gardening', 'Home Improvement', 'Mortuary', 'Paint', 'Other'); $str = ''; return $str; } //-------------------------------------------------------------------- /** * state option list * @return param state option */ function _opt_state($sel) { $t = array( 'Select State/Province','Alabama','Alaska','American Samoa','Arizona', 'Arkansas','California','Colorado','Connecticut','Delaware','District of Colombia', 'Florida','Georgia','Guam','Hawaii','Idaho','Illinois','Indiana','Iowa', 'Kansas','Kentucky','Louisiana','Maine','Maryland','Massachusetts','Michigan', 'Minnesota','Mississippi','Missouri','Montana','Nebraska','Nevada','New Hampshire', 'New Jersey','New Mexico','New York','North Carolina','North Dakota','Iowa', 'Oklahoma','Oregon','Pennsylvania','Puerto Rico','Rhode Island','South Carolina', 'South Dakota','Tennessee','Texas','Utah','Vermont','Virgin Island','Virginia', 'Washington','West Virginia','Wisconsin','Wyoming', ); $str = ''; return $str; } //-------------------------------------------------------------------- /** * employees option list * @return param employees option */ function _opt_employees($sel) { $t = array('1-15', '16-30', '31-80', '81-120', '121-200', '> 200'); $str = ''; return $str; } //-------------------------------------------------------------------- /** * yes no option list * @return param yes no option */ function _opt_yesno($sel, $name) { $t = array('---', 'Yes', 'No', 'Maybe',); $str = ''; return $str; } //-------------------------------------------------------------------- /** * when option list * @return param when option */ function _opt_when($sel, $name) { $t = array('When', '1-3 months', '3-6 months', '6-12 months', '> 12 months'); $str = ''; return $str; } //-------------------------------------------------------------------- /** * Concern option list * @return param Concern option */ function _opt_concern($sel, $name) { $t = array( 'Voice your Concern','Barrier Integirty','Comfort & Fit','Chemical Reistance', 'Grip','Hand Dryness','Latex Allergy','Powder Irritation','Pricing', 'Residue/Sweating','Sensitivity','Tear Resistance','Others', ); $str = ''; return $str; } //-------------------------------------------------------------------- /** * Get Parameter * @return param array */ function _get_post(){ ### ME //title $_f['title'] = _get_param($_POST, 'title', 'Mr.'); $_f['opt_title'] = _opt_title($_f['title']); //firstname $_f['firstname'] = _get_param($_POST, 'firstname', ''); //lastname $_f['lastname'] = _get_param($_POST, 'lastname', ''); //section $_f['sector'] = _get_param($_POST, 'sector', ''); $_f['opt_sector'] = _opt_sector($_f['sector']); //other $_f['other'] = _get_param($_POST, 'other', ''); //phone $_f['phone'] = _get_param($_POST, 'phone', ''); //fax $_f['fax'] = _get_param($_POST, 'fax', ''); //email $_f['email'] = _get_param($_POST, 'email', ''); ### My Company //facility $_f['facility'] = _get_param($_POST, 'facility', ''); //address $_f['address'] = _get_param($_POST, 'address', ''); //city $_f['city'] = _get_param($_POST, 'city', ''); //state $_f['state'] = _get_param($_POST, 'state', ''); $_f['opt_state'] = _opt_state($_f['state']); //zip $_f['zip'] = _get_param($_POST, 'zip', ''); //employees $_f['employees'] = _get_param($_POST, 'employees', ''); $_f['opt_employees'] = _opt_employees($_f['employees']); //powder $_f['powder'] = _get_param($_POST, 'powder', ''); $_f['opt_powder'] = _opt_yesno($_f['powder'], 'powder'); //powdertime $_f['powdertime'] = _get_param($_POST, 'powdertime', ''); $_f['opt_powdertime'] = _opt_when($_f['powdertime'], 'powdertime'); //latex $_f['latex'] = _get_param($_POST, 'latex', ''); $_f['opt_latex'] = _opt_yesno($_f['latex'], 'latex'); //latextime $_f['latextime'] = _get_param($_POST, 'latextime', ''); $_f['opt_latextime'] = _opt_when($_f['latextime'], 'latextime'); ### Concern //primary $_f['primary'] = _get_param($_POST, 'primary', ''); $_f['opt_primary'] = _opt_concern($_f['primary'], 'primary'); //secondary $_f['secondary'] = _get_param($_POST, 'secondary', ''); $_f['opt_secondary'] = _opt_concern($_f['secondary'], 'secondary'); //checkbox group 1 for($i=1; $i < 12; $i++){ $_f['chk'.$i] = (_get_param($_POST, 'check1box'.$i, false))? 'checked="checked" ' : ''; } //concernothers $_f['concernothers'] = _get_param($_POST, 'concernothers', '---'); //checkbox group 2 for($i=1; $i < 17; $i++){ $_f['chk2_'.$i] = (_get_param($_POST, 'check2box'.$i, false))? 'checked="checked" ' : ''; } return $_f; } //-------------------------------------------------------------------- /** * form validation */ function validate($val){ $valid = true; $msg = 'Please complete the following fields:
'; //check title if(empty($val['title'])){ $valid = false; $msg .= '- Please select Title
'; } //check firstname if(empty($val['firstname'])){ $valid = false; $msg .= '- Enter First name please
'; } //check lastname if(empty($val['lastname'])){ $valid = false; $msg .= '- Enter Last name please
'; } //check sector if(empty($val['sector'])){ $valid = false; $msg .= '- Please select Sector
'; } else { if($val['sector'] == 'Other'){ //check other field if(empty($val['other'])){ $valid = false; $msg .= '- Enter other sector please
'; } } } //check phone if(empty($val['phone'])){ $valid = false; $msg .= '- Enter Phone please
'; } //check fax if(empty($val['fax'])){ $valid = false; $msg .= '- Enter Fax please
'; } //check email if(!ereg("^[A-Za-z0-9](([_\.\-]?[a-zA-Z0-9]+)*)@([A-Za-z0-9]+)(([\.\-]?[a-zA-Z0-9]+)*)\.([A-Za-z]{2,})$",$val['email'])){ $valid = false; $msg .= '- Enter valid Email please
'; } //check facility if(empty($val['facility'])){ $valid = false; $msg .= '- Enter Facility please
'; } //check address if(empty($val['address'])){ $valid = false; $msg .= '- Enter Address please
'; } //check city if(empty($val['city'])){ $valid = false; $msg .= '- Enter City please
'; } //check state if(empty($val['state'])){ $valid = false; $msg .= '- Please select State/Province
'; } //check zip if(empty($val['zip'])){ $valid = false; $msg .= '- Enter Zip/Postal Code please
'; } //check Primary Concern if(empty($val['primary'])){ $valid = false; $msg .= '- Please select Primary Concern
'; } //check secondary Concern if(empty($val['secondary'])){ $valid = false; $msg .= '- Please select Secondary Concern
'; } return array('valid' => $valid, 'msg' => $msg); } //-------------------------------------------------------------------- //get POST params $_f = _get_post(); $msg = ''; if(isset($_POST['regSubmit'])){ $chk = validate($_f); //check valid if($chk['valid']){ $msg = 'Thank you for register, it has been submitted.'; //send mail if(!_np_sendmail($_f, $data)){ $msg = 'Sorry, an error has occur! Please contact webmaster now.'; } else { //set empty $_POST = array(); //get param again $_f = _get_post(); } } else { $msg = ''.$chk['msg'].''; } } $form_action = $_SERVER['PHP_SELF']; $form = <<< html {$msg}

Why Register Now?

In our continuous effort to be your preferred Professional Protective Solution Partner, we wish to extend the following benefits to all our registered customers in exchange for a chance to better serve your needs. All information gather in the registration will not be shared or sold. It will be used solely for us to personalize our solution introduction and promotion to you.

Benefits to you:

  • Receive priority PERSONALIZED special promotions and great discounts specific to your needs and requirements.
  • Free Samples of our latest products.
  • Be assigned a dedicated customer service contact to fulfill your protective solution needs.

At Pro2 Solutions, we are committed to make every sincere effort to fulfill varies protective needs and to deliver on our customer’s uncompromising expectation for quality solutions.

 

Me: ( * = required)

Title {$_f['opt_title']} *    
First Name * Last Name *
Sector {$_f['opt_sector']} * if other, Please Specify
Phone * Fax *
Email *    

My Company: ( * = required)

Facility *
Address *
City * State/Province {$_f['opt_state']} *
Zip/Postal Code *

 

For sample delivery purpose:
Number of Employees Requiring Protective Solutions {$_f['opt_employees']}  
Are you considering a POWDER-FREE environment? {$_f['opt_powder']} If yes, how soon? {$_f['opt_powdertime']}
Are you considering a LATEX-FREE environment? {$_f['opt_latex']} If yes, how soon? {$_f['opt_latextime']}

 

My Protective Solution Preferences: ( * = required)


Critical Concerns in Protective Solutions
Primary Concern {$_f['opt_primary']} * Secondary Concern {$_f['opt_secondary']}*

Additional Concerns (optional, if any):
Latex Allergy Sensitivity Glove Fit
Powder Irritation Comfort Residue
Barrier Integrity Grip Dryness
Chemical Resistance Pricing Others

Please send me FREE SAMPLES of the following Pro2 Solutions:
Latex Free Solution Powder Free Solution Barrier Integrity Solution
Cranberry Nitrile PF Sigma PF Cranberry LP
Redwood Nitrile PF Cranberry PF Malaytex LP
Cranberry Vinyl PF Malaytex PF Redwood LP
Cranberry Vinyl LP Redwood PF  
Redwood Nitrile LP (Non-Medical) Perfect PF (Non-Medical) Perfect LP (Non-Medical)

Our standard sample packing comes with small, medium and large samples, please click here if you require x-small or x-large size samples:
x-small x-large  

 

   

 

* Please click on the back button to return to this page if you miss a field(s) to avoid retyping the entries. Thank you.

html; ?> Welcome to Pro2s Solutions: Your Professional Protective Solutions Partner

Protective Products by Profession

HealthCare & Dental
Industrial & Non-Medical

Protective Products by Solution

Latex-Free (Synthetic)
Powder-Free
Barrier Protection

Pro2 NEWEST Products

Ecobee™ BeeSure
ClearlyNitrile Series
SkinTek Series
Xlim Series
Cyntek Series
S3 Face Mask
S3 ACE Face Mask
S3 C2 Face Mask
Deep Treatment Cream
home about solutions career contact register
 
Home    |    About    |    Solutions    |    Career    |    Contact    |    Register
Copyright © Pro2 Solutions, Inc., 2007. All Rights Reserved.Powered by GreenEarth