// Validation if (strlen($nom) > 2 && strlen($nom) != 0 && ereg('[A-Za-z0-9_-]+\@[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+', $email) && strlen($message) == 0) { //Sending Email to form owner $pfw_header = "From: $email\n" . "Reply-To: $email\n"; $pfw_subject = "Eric Eroc Web Services"; $pfw_email_to = "ericeroc@gmail.com"; $pfw_message = "Visitor's IP: $pfw_ip\n" . "nom: $nom\n" . "email: $email\n" . "message: $message\n" . ""; @mail($pfw_email_to, $pfw_subject ,$pfw_message ,$pfw_header ) ; echo("

Thanks, your message has been sent succesfully

"); } else { echo("