Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Other Need people to test my contact form Re: Need people to test my contact form

#82902
GeneralKnowledge
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.