/ Published in: PHP

Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
// Vérifie la validité de l'email function est_email ($adresse) { $reg = "^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]*[.][a-z]{2,3}$"; if ($email) { return TRUE; } } { print "Ce n'est pas un e-mail"; } // Renvoie "Ce n'est pas un e-mail"
Comments
