Une fonction verif mail
Le 31 octobre 2006
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”
Répondre
xcvxc
Bonjour, essai de commentaire sur ton blog en flash !