Tuesday, August 23, 2011

asp IsValidEmail

Function IsValidEmail(Email As String) As Boolean
If InStr(1, Email, ".") = 0 Then
IsValidEmail = False
Exit Function
End If

If InStr(1, Email, "@") = 0 Then
IsValidEmail = False
Exit Function
End If
IsValidEmail = True
End Function

0 Comments:

Post a Comment