asp中文数字验证码的实现
来源:互联网 发布:atlas apache 编辑:程序博客网 时间:2024/05/18 02:42
验证码在知码网来说是一个耳熟能详的名词了。今天知码网就来说说大写数字验证码的实现方法吧。
<form method="post" name=myform>
姓 名:<input type="text" name="name" value=""><br>
学 号:<input type="text" name="num" value=""><br>
。。。:<input type="text" name="aaa" value=""><br>
。。。:<input type="text" name="bbb" value=""><br>
验证码:<img src="vcode/c.asp" onclick="this.src=this.src" title="点击图片可以更改验证码" height="13" width="52">
<input type="text" size="5" name="C" autocomplete="off" style="ime-mode:disabled;" value="">
<input type="submit" value="提交">
</form>
<form method="post" name=myform>
姓 名:<input type="text" name="name" value=""><br>
学 号:<input type="text" name="num" value=""><br>
。。。:<input type="text" name="aaa" value=""><br>
。。。:<input type="text" name="bbb" value=""><br>
验证码:<img src="vcode/c.asp" onclick="this.src=this.src" title="点击图片可以更改验证码" height="13" width="52">
<input type="text" size="5" name="C" autocomplete="off" style="ime-mode:disabled;" value="">
<input type="submit" value="提交">
</form>
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
%>
<%
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
%>
以上内容由知码网提供。“知码网-验证码识别、答题云平台”为您提供一个稳定、快速和安全的云端验证码识别和答题平台。
文章摘自:www.zhima365.com
- asp中文数字验证码的实现
- asp中文数字验证码的实现
- asp中文数字验证码
- asp中文数字验证码
- asp中文数字验证码
- 英文,数字和中文混合的彩色验证码实现
- asp.net简单数字验证码的实现
- ASP.Net中四位数字验证码的实现
- asp汉字中文图片验证码的实现代码
- 中文数字验证码
- ASP.NET 验证码 攻略,支持中文,字母,数字
- ASP.NET验证码攻略,支持中文,字母,数字C#
- 数字验证码的实现
- 数字验证码.asp
- php中文字母数字验证码实现代码
- JAVAWEB项目实现验证码中文、英文、数字组合
- asp验证码的实现
- 在ASP.NET下实现数字和字符相混合的验证码
- 如何给对话框添加位图
- 网络安全软件FileAudit的E-mail设置
- 开博记
- urlrewrite 匹配规则之优先选择
- 如何使用Android系统属性(SystemProperties)
- asp中文数字验证码的实现
- 虚拟内存之倒排页表
- C# 根据日期计算日期周数
- thrift使用小记
- asp生成验证码代码
- 四种实现下载功能的方法
- HorizontalScrollView去掉滚动条
- Stanford Algorithms: Design and Analysis, Part 1[week 2]
- 好的博客