ASP中如何做验证码

来源:百度知道 编辑:UC知道 时间:2024/05/18 12:23:01
已经做好了验证码的图片文件,游戏表单中已经添加好了,测试时可以正确显示验证码,请问如何做后台验证?望高手赐教!
下面是加在页面中的代码,可是不能验证.
<%
if request("yangzhengma")="login" then
If Trim(Request.Form("yanzhengma"))=Empty Or Trim(Session("pSN"))<>Trim(Request.Form("yangzhengma")) Then
Response.Write("请注意正确输入验证码!")
response.end
end if
%>

request("yangzhengma")="login" then
If Trim(Request.Form("yanzhengma"))=Empty Or Trim(Session("pSN"))<>Trim(Request.Form("yangzhengma")) Then
Response.Write("请注意正确输入验证码!")
response.end
end if
%>