在知码网来说是一个耳熟能详的名词了。今天就来说说大写数字验证码的实现方法吧。
asp代码:
<%
c = Request.form("c")
‘如果可以输入小写的数字,请把下面三行注释掉
for ii = 0 to 9
c = Replace(c,Cstr(ii),"")
next
c = Replace(c,"零","0")
c = Replace(c,"一","1")
c = Replace(c,"二","2")
c = Replace(c,"三","3")
c = Replace(c,"四","4")
c = Replace(c,"五","5")
c = Replace(c,"六","6")
c = Replace(c,"七","7")
c = Replace(c,"八","8")
c = Replace(c,"九","9")
if Cstr(c) <> Cstr(Session("validateCode")) then
Response.write ("验证码不正确")
Response.end
end if
%>
以上内容由知码网提供。“知码网-验证码识别、答题云平台”为您提供一个稳定、快速和安全的云端验证码识别和答题平台。
文章摘自:
阅读(251) | 评论(0) | 转发(0) |