Une fonction verif mail

Le 31 octobre 2006

Une fonction verif mail

Une fonction qui verifie les mails:

[actionscript]
function verifMail() {
// fonction classique de vérification de l’email.
if (sEmail.length>=7) {
if (sEmail.indexOf(”@”)>0) {
if ((sEmail.indexOf(”@”)+2)
if (sEmail.lastIndexOf(”.”)<(sEmail.length-2)) {
return (true);
}
}
}
}
return (false);
}
[/actionscript]

ensuite si la vérification est correcte:

[actionscript]
if (verifMail()) {
faire mon action
}
[/actionscript]

Flash 8 ( Vu : 2477 fois )

Commentaires

2 Réponses à “Une fonction verif mail”

  1. vc on 1 janvier 2008 16:01

    xcvxc

  2. tintin on 30 avril 2008 11:57

    Bonjour, essai de commentaire sur ton blog en flash !

Répondre