'; /* get it checking */ if(!check_firstname($firstname)) { $errormsg.= "
"; $error++; // $error=$error+1; } if(!check_lastname($lastname)) { $errormsg.= ""; $error++; } if(!check_email($email)) { $errormsg.= ""; $error++; } if(!check_phone($phone)) { $errormsg.= ""; $error++; } $errormsg .= ''; if($error == 0) { // no errors so mail the message $hurrah = safe_mail("youremail@yourdomain.com",$subject,$message,"$email"); // send the SMS? uncomment line below and replace 1231231234 with the appropriate cell phone number //$hurrah = safe_mail("1231231234@teleflip.com",$Subject,$message); //now lets update the "contactarea" div on the contact.html page. //The contactarea| tell's the javascript which div to update. echo 'contactarea|Thank you '.$name.', your email has been sent.'; } else { //echo 'contactarea|There is an error your email has not been sent.'; echo 'error|'. $errormsg; } ?>