$value): if($_POST[$key]=="" && in_array($key,$requiredFields)) $emptyFields[] = $key; endforeach; $checkMailResult = checkEmail($_POST['contactus_email']); if($checkMailResult && count($emptyFields)==0): if(($_SESSION['security_code'] == $_POST['security_code']) && (!empty($_SESSION['security_code'])) ) { // Insert you code for processing the form here, e.g emailing the submission, entering it into a database. $EMAIL_FROM = $_POST['contactus_email']; $EMAIL_TO = "harlanjacobsen@webtv.net"; //$_POST['conSentTo']; //$EMAIL_SUBJECT = $_POST['contactus_subject']; $EMAIL_SUBJECT = "Diabetes Cure 101 Inquiry"; $body = "From: ".$_POST['contactus_name']."
Phone: ".$_POST['contactus_phone']."

".stripslashes($_POST['contactus_message']); $mailNewsletter = new _SENDMAIL($EMAIL_FROM,$EMAIL_TO,$EMAIL_SUBJECT,$body,"html"); $mailNewsletter->SENDNOW(); unset($_SESSION['contactus_postvar']); unset($_SESSION['security_code']); //redirect('sysmsg.php?eid=3&lnk=13'); header('Location: contactus.php?msg=1'); } else { // Insert your code for showing an error message here //redirect("contactus.php?err=1"); $err = 1; } endif; //redirect("contactus.php?lnk=13"); endif; ?> Laid Off Go Here - Contact Us
<< Back to Home

Laid Off Go Here - Contact Us


$value): if($_SESSION['contactus_postvar'][$key] == "" ) $emptyFieldsArray[] = $key; $_POST[$key] = $value; endforeach; if(checkEmail($_SESSION['contactus_postvar']['contactus_email'])===false) $emptyFieldsArray[] = "contactus_email"; endif; if($_GET['msg']==1) echo 'Message Sent.

'; if(count($emptyFieldsArray)!=0) echo 'Asterisk (*) marked fields are required.

'; if($err==1) echo 'The Security Code is incorrect.

'; ?>
Name:
Phone:
Email:
Message:
captcha
Security Code:


0): // $parts = explode("@", $email); // if (checkdnsrr($parts[1], "MX")) return true; // else return false; //else: // return false; //endif; $pattern = "/^[\w-]+(\.[\w-]+)*@([0-9a-z][0-9a-z-]*[0-9a-z]\.)+([a-z]{2,4})$/i"; if (preg_match($pattern,$email)>0) return true; else return false; } function checkFieldEmpty($emptyFieldsArray,$fieldName){ $asterisk = ""; if(is_array($emptyFieldsArray) && in_array($fieldName,$emptyFieldsArray)): $asterisk = '* '; endif; return $asterisk; } ?>