Home › Forums › Other › Need people to test my contact form › Re: Need people to test my contact form
July 5, 2011 at 7:49 pm
#82902
Participant
in the PHP you use to send the e-mail it’s something like
/*Complicated regex which validates emails*/
$regex = "[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?";
/*Get the email address the user entered
$email = $_POST;
/*if the email is valid. then this is true*/
if(preg_match($regex,$email)){
/*code to send the email in the contact form*/
}
?>
This is ofcourse assuming that you are using PHP to send the data to you.