alert!
You did not enter your first name Your name must consist only of letters
  alert!
You did not enter your last name Your name must consist only of letters
  alert!
You must provide an email address Your email contains invalid characters
  alert!
You must provide a phone number Your phone number contains invalid characters
alert!
Your comments contain invalid characters
EOD; function uniqueName($name) { return true; } $processor =& new FormProcessor($form); if ($processor->validate()) { //echo '

Form data is OK.

';
//print_r($_POST);
//echo '
'; // get the posted values $firstname = $_POST["first_name"]; $lastname = $_POST["last_name"]; $email = $_POST["email"]; $phone = $_POST["phone"]; $comments = $_POST["comments"]; $contact_type = "Regular Contact Form"; $name = "$firstname $lastname"; $timenow = date("m-d-Y"); $Subject = "Contact Form"; $browser = getenv('HTTP_USER_AGENT'); $ip = getenv('REMOTE_ADDR'); // format message $message = " Date: $timenow Name: $firstname $lastname Email: $email Phone: $phone ----------------------------- Comments: $comments ----------------------------- IP: $ip Browser: $browser ** Note all email addresses have been stripped of the 'at' sign and replaced with '_at_'. This is to protect the form from being used as a spam relay. ** "; // yank any @ symbols out to make sure no one can use this to spam anyone // except the intended recipient $message = str_replace("@","_at_",$message); // want to send an SMS message? send it via teleflip // format the teleflip message $message2 = " $firstname $lastname ($areacode) $localcode-$phonenumbers "; // send the contact to the intended recipient $hurrah = safe_mail("youremail@yourdomain.com",$Subject,$message); // send the SMS? uncomment line below and replace 1231231234 with the appropriate phone number //$hurrah = safe_mail("1231231234@teleflip.com",$Subject,$message); if($hurrah != TRUE) { echo "Internal mailer error.
"; } else { echo "

Message sent.
Thank you for your interest. We will be contacting you shortly.

"; } } else { $processor->display(); } // no POST } else { // we have a javascript cookie so import the scripts if ($_COOKIE["jscript"] =="Yes") { ?>
 
 
 
 
 
 
  alert!
You did not enter your first name Your name must consist only of letters
  alert!
You did not enter your last name Your name must consist only of letters
  alert!
You must provide an email address Your email contains invalid characters
  alert!
You must provide a phone number Your phone number contains invalid characters
alert!
Your comments contain invalid characters
EOD; function uniqueName($name) { return true; } $processor =& new FormProcessor($form); if ($processor->validate()) { //echo '

Form data is OK.

';
//print_r($_POST);
//echo '
'; // get the posted values $firstname = $_POST["first_name"]; $lastname = $_POST["last_name"]; $email = $_POST["email"]; $phone = $_POST["phone"]; $comments = $_POST["comments"]; $contact_type = "Regular Contact Form"; $name = "$firstname $lastname"; $timenow = date("m-d-Y"); $Subject = "Contact Form"; $browser = getenv('HTTP_USER_AGENT'); $ip = getenv('REMOTE_ADDR'); // format message $message = " Date: $timenow Name: $firstname $lastname Email: $email Phone: $phone ----------------------------- Comments: $comments ----------------------------- IP: $ip Browser: $browser ** Note all email addresses have been stripped of the 'at' sign and replaced with '_at_'. This is to protect the form from being used as a spam relay. ** "; // yank any @ symbols out to make sure no one can use this to spam anyone // except the intended recipient $message = str_replace("@","_at_",$message); // want to send an SMS message? send it via teleflip // format the teleflip message $message2 = " $firstname $lastname ($areacode) $localcode-$phonenumbers "; // send the contact to the intended recipient $hurrah = safe_mail("youremail@yourdomain.com",$Subject,$message); // send the SMS? uncomment line below and replace 1231231234 with the appropriate phone number //$hurrah = safe_mail("1231231234@teleflip.com",$Subject,$message); if($hurrah != TRUE) { echo "Internal mailer error.
"; } else { echo "

Message sent.
Thank you for your interest. We will be contacting you shortly.

"; } } else { $processor->display(); } } // end show PHP form } // end else no post ?>