begin process at 2012 02 13 12:41:10
  Trouver un code source :
 
dans
 
Accueil > 

Code

 > 

Administration

 > VALIDER UNE ADRESSE EMAIL

VALIDER UNE ADRESSE EMAIL


 Information sur la source

Note :
Aucune note
Catégorie :Administration Niveau :Débutant Date de création :29/05/2002 Date de mise à jour :29/05/2002 18:31:42 Vu :6 851

Auteur : manioc

Ecrire un message privé
Commentaire sur cette source (0)
Ajouter un commentaire et/ou une note

 Description

A insérer dans la page du formulaire ou votre victime saisira son email

Source

  • <%
  • str0 = Request.Form("adressemail")
  • str1 = Replace(str0,";",".")
  • str2 = Replace(str1,"^","")
  • str3 = Replace(str2," ","")
  • str4 = Replace(str3,"é","e")
  • str5 = Replace(str4,"è","e")
  • str6 = Replace(str5,"à","a")
  • str7 = Replace(str6,"ù","u")
  • str8 = Replace(str7,"ç","c")
  • Function IsValidEmail( ByVal sString)
  • Dim sEmail, nIndex, nDotIndex
  • IsValidEmail = False
  • sString = Trim(sString)
  • nIndex = InStr(1, sString, "@")
  • If nIndex < 2 Then
  • Exit Function
  • End If
  • nDotIndex = InStrRev(sString, "." )
  • If nDotIndex < nIndex + 1 Then
  • Exit Function
  • End If
  • If InStr( nIndex + 1, sString, "@" ) > nIndex Then
  • Exit Function
  • End If
  • If nDotIndex > Len( sString ) - 2 Then
  • Exit Function
  • End If
  • IsValidEmail = True
  • End Function
  • If IsValidEmail(str8) = True Then
  • response.write("Adresse Ok")
  • response.write("<BR>")
  • response.write str8
  • else
  • response.write("Adresse invalide")
  • response.write("<BR>")
  • response.write Request.Form("adressemail")
  • End If
  • %>
<%
str0 = Request.Form("adressemail")
str1 = Replace(str0,";",".")
str2 = Replace(str1,"^","")
str3 = Replace(str2," ","")
str4 = Replace(str3,"é","e")
str5 = Replace(str4,"è","e")
str6 = Replace(str5,"à","a")
str7 = Replace(str6,"ù","u")
str8 = Replace(str7,"ç","c")

Function IsValidEmail( ByVal sString)
Dim sEmail, nIndex, nDotIndex
IsValidEmail = False
sString = Trim(sString)
nIndex = InStr(1, sString, "@")
If nIndex < 2 Then 
Exit Function
End If
nDotIndex = InStrRev(sString, "." )
If nDotIndex < nIndex + 1 Then
Exit Function
End If
If InStr( nIndex + 1, sString, "@" ) > nIndex Then
Exit Function
End If
If nDotIndex > Len( sString ) - 2 Then
Exit Function
End If
IsValidEmail = True
End Function

If IsValidEmail(str8) = True Then
response.write("Adresse Ok")
response.write("<BR>")
response.write str8
else
response.write("Adresse invalide")
response.write("<BR>")
response.write Request.Form("adressemail")
End If
%>



 Sources du même auteur

RECUPERER CES MAILS FACILEMENT
UTILISATEUR PRESENT SUR LE SITE
TEXTE DÉFILANT EN BAS DE PAGE

 Sources de la même categorie

Source .NET (Dotnet) UTILISATION DES DATATABLES ET L'AFFICHAGE DU CONTENU DANS UN... par hedi_tounsi
Source .NET (Dotnet) RÉCUPÉRATION DES GROUPES AD D'UN USER EN ASPNET par DemonFire21
Source avec Zip Source avec une capture Source .NET (Dotnet) .NET2 GESTIONNAIRE DE DROITS DE FICHIERS AVEC SQL SERVER EN ... par gldfdp
Source avec Zip AUTHENTIFICATION D'UTILISATEURS AVEC BASE DE DONNÉES par Nurgle
Source .NET (Dotnet) CLASS : VALIDER UN LOGIN ET MOT DE PASSE SUR ACTIVE DIRECTOR... par Trinita16

Commentaires et avis

Aucun commentaire pour le moment.

 Ajouter un commentaire




Nos sponsors


Sondage...

CalendriCode

Février 2012
LMMJVSD
  12345
6789101112
13141516171819
20212223242526
272829    

Consulter la suite du CalendriCode

 
Développement réalisé par Nicolas SOREL (Nix) avec l'aide de : Cyril DURAND et Emmanuel (EBArtSoft), Merci à Vincent pour ses précieux conseils.
CodeS-SourceS.com© Toute reproduction même partielle est interdite sauf accord écrit du Webmaster
CodeS-SourceS.com© est une marque déposée tous droits réservés

Google Coop CodeS-SourceS Google Coop CodeS-SourceS
Temps d'éxécution de la page : 0,780 sec (3)

Nous contacter | Annoncer sur CodeS-SourceS | Mentions légales