History for < Vérifier la validité d'une adresse email avec php >

Sort by: Date / Title /

  1. 2 years ago by daoro
    1. // Vérification de la forme
    2. function isEmail($email){
    3.  return preg_match("/^(\w|-|\.)+@((\w|-)+\.)+[a-z]{2,6}$/i", $email)
    4. }
    5.  
    6. // Domaine valide ?
    7. function isEmailDomaine($email){
    8.    list($compte,$domaine)=split('@',$email,2);
    9.    if(!checkdnsrr($domaine,'MX') && !checkdnsrr($domaine,'A')){
    10.      return false;
    11.    }else{
    12.      return true;
    13.    }
    Paste this in your website: <script type="text/javascript" src="http://www.posteet.com/embed/152"></script>

 

This posteet has also been saved without any changes by steph, akyrho