查看: 980|回复: 0

[文章教程] asp验证码代码

[复制链接]
ttasp 发表于 2019-3-23 14:09:26 | 显示全部楼层 |阅读模式
验证码调用:

  1. <img src="code.asp" style="cursor:hand" onclick="this.src='code.asp';" alt="看不清?点一下" />


  2. 验证函数:

  3. Function codepass()
  4.         Dim CodeStr
  5.         CodeStr = Trim(request("CodeStr"))
  6.         If CStr(Session("GetCode")) = CStr(CodeStr) And CodeStr <> "" Then
  7.             codepass = True
  8.             'Session("GetCode")=empty
  9.         Else
  10.             codepass = False
  11.             'Session("GetCode")=empty
  12.         End If
  13.     End Function
复制代码

验证码.rar (3.4 KB, 下载次数: 5)
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表

在线客服

售前咨询
售后咨询
服务热线
023-58418553
微信公众号