| Is it a valid email address? |
| Basic email checker |
| <%
Wemail="a@aa.us" test1=instr(Wemail, "@") ' value must be >1 test2=instr(Wemail, ".") ' value must be >4 test3=len(Wemail) ' value must be >6 test4=InStr (test1,Wemail,".",1) ' value must be >test1+2 if test1<2 OR test2<5 OR test3<7 OR test4<test1+3 then
|
This script will allow to check emails from a form
| isemail2.asp |
| <%
if request.form("email")="" then Sendform() else IsEmail(request.form("email")) end if Sendform() %> <% Sub Sendform() %>
<%
if test1<2 OR test2<5 OR test3<7 OR test4<test1+3 then
|