没有合适的资源?快使用搜索试试~ 我知道了~
判断名字,判断email函数, 输入内容检测,判断手机号码,判断考生号
资源推荐
资源详情
资源评论
<%
Vxingming=trim(request.form("Txingming"))
Vemail=trim(request.form("Temail"))
Voicq=trim(request.form("Toicq"))
Vzishu=trim(request.form("Tzishu"))
Vneixian=trim(request.form("Tneixian"))
Vshouji=trim(request.form("Tshouji"))
Vksh=trim(request.form("Tksh"))
if Vxingming="" then '--------------判断名字
response.write "<script language='javascript'>" & VbCRlf
response.write "alert('你忘记填入你的姓名啦~!~');" & VbCrlf
response.write "history.go(-1);" & vbCrlf
response.write "</script>" & VbCRLF
response.end
end if
'--------------------判断email函数----------
If Vemail="" or IsValidEmail(Vemail)=false then
response.write "<script language='javascript'>" & VbCRlf
response.write "alert('错误的email输入');" & VbCrlf
response.write "history.go(-1);" & vbCrlf
response.write "</script>" & VbCRLF
response.end
end if
'-------------------下次写个全的OICQ的判断(nami)--------------
if Isnumeric(Voicq) =false then
response.write "<script language='javascript'>" & vbcrlf
response.write "alert('哎呀!你要么没写qq!要么就是qq不全是数字!:(');"& vbcrlf
response.write "history.go(-1);" & vbcrlf
Vxingming=trim(request.form("Txingming"))
Vemail=trim(request.form("Temail"))
Voicq=trim(request.form("Toicq"))
Vzishu=trim(request.form("Tzishu"))
Vneixian=trim(request.form("Tneixian"))
Vshouji=trim(request.form("Tshouji"))
Vksh=trim(request.form("Tksh"))
if Vxingming="" then '--------------判断名字
response.write "<script language='javascript'>" & VbCRlf
response.write "alert('你忘记填入你的姓名啦~!~');" & VbCrlf
response.write "history.go(-1);" & vbCrlf
response.write "</script>" & VbCRLF
response.end
end if
'--------------------判断email函数----------
If Vemail="" or IsValidEmail(Vemail)=false then
response.write "<script language='javascript'>" & VbCRlf
response.write "alert('错误的email输入');" & VbCrlf
response.write "history.go(-1);" & vbCrlf
response.write "</script>" & VbCRLF
response.end
end if
'-------------------下次写个全的OICQ的判断(nami)--------------
if Isnumeric(Voicq) =false then
response.write "<script language='javascript'>" & vbcrlf
response.write "alert('哎呀!你要么没写qq!要么就是qq不全是数字!:(');"& vbcrlf
response.write "history.go(-1);" & vbcrlf
response.write "</script>" & VbCRLF
response.end
end if
'-------------------输入内容检测------------------------
if Vzishu="" then
response.write "<script language='javascript'>" & VbCRlf
response.write "alert('你想干什么?搞破坏啊~~~');" & VbCrlf
response.write "history.go(-1);" & vbCrlf
response.write "</script>" & VbCRLF
response.end
end if
function IsValidEmail(email)'判断-------------------------
dim names, name, i, c
IsValidEmail = true
names = Split(email, "@") '-----------判断有否@-------------------
if UBound(names) <> 1 then '------------------------无----------------------
IsValidEmail = false
exit function
end if
for each name in names '分割的每段长度-----------------
if Len(name) <= 0 then
IsValidEmail = false
exit function
end if
for i = 1 to Len(name)
c = Lcase(Mid(name, i, 1)) '------------分割成每个字母或数字------------------
if InStr("abcdefghijklmnopqrstuvwxyz_-.", c) <= 0 and not IsNumeric(c) then
IsValidEmail = false
exit function
response.end
end if
'-------------------输入内容检测------------------------
if Vzishu="" then
response.write "<script language='javascript'>" & VbCRlf
response.write "alert('你想干什么?搞破坏啊~~~');" & VbCrlf
response.write "history.go(-1);" & vbCrlf
response.write "</script>" & VbCRLF
response.end
end if
function IsValidEmail(email)'判断-------------------------
dim names, name, i, c
IsValidEmail = true
names = Split(email, "@") '-----------判断有否@-------------------
if UBound(names) <> 1 then '------------------------无----------------------
IsValidEmail = false
exit function
end if
for each name in names '分割的每段长度-----------------
if Len(name) <= 0 then
IsValidEmail = false
exit function
end if
for i = 1 to Len(name)
c = Lcase(Mid(name, i, 1)) '------------分割成每个字母或数字------------------
if InStr("abcdefghijklmnopqrstuvwxyz_-.", c) <= 0 and not IsNumeric(c) then
IsValidEmail = false
exit function
剩余5页未读,继续阅读
资源评论
lengzhenguo
- 粉丝: 1
- 资源: 2
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功