<?php
if($_SERVER["HTTP_REFERER"] !== '
http://www.site.com/index.php") {
echo "Le formulaire est soumis depuis une source externe !";
}
?>
<?php
if(!filter_var($_POST["courriel"], FILTER_VALIDATE_EMAIL)) {
echo "Votre adresse de courriel est incorrecte !";
}
?>