Formulaire
RĂ©ponse ";
$mail = filter_var($_POST['email'], FILTER_SANITIZE_SPECIAL_CHARS);
$nom = filter_var($_POST['nom'], FILTER_SANITIZE_SPECIAL_CHARS);
$url = filter_var($_POST['url'], FILTER_SANITIZE_SPECIAL_CHARS);
echo "
Nom : $nom
";
echo "
Email : $mail est " . (filter_var($address, FILTER_VALIDATE_EMAIL) ? 'OK' : 'NOK') . " valide
";
echo "
URL : $url est " . (filter_var($url, FILTER_VALIDATE_URL) ? 'OK' : 'NOK') . " valide
";
}
?>