大家帮忙看一下这段ASP代码哪里出了问题。
大家帮我看一下这段ASP登录验证代码有什么问题,单独调试第一段代码(用户密码验证),没什么问题,然后把第二段代码加上(判断错误登录次数)后, 前三次输入错误的用户名或密码能提示alert('用户名或密码不正确!'); 到第四次输错的时候都不会提示了,这两条语句都不会提示。alert('登录失败!你已登录超过3次!');alert('用户名或密码不正确!');
<%
'用户密码验证
dim username
dim password
username=request.Form("UserName")
password=request.Form("UserPassword")
set rstmp=server.CreateObject("adodb.recordset")
sql="select * from users where username='"& username &"' and userpassword='"& password &"'"
rstmp.open sql,conn,1,1
if not rstmp.eof then
session("username")=username
response.Redirect("index.asp")
else
response.Write(" <script language='javascript'>history.back(); </script>")
end if
'登录错误次数验证
if session("logintimes")="" then
session("logintimes")=1
else
if session("logintimes")>=3 then
response.Write(" <script>history.back(); </script>")
response.End()
else
session("loginti
相关问答:
owc11满足不了要求,有没有更好点的,asp能调用的
目前没发现,帮你顶!
应该没有了吧
自已写。顶
帮顶,关注!
好像就这个了,目前还没看到其他得上市使用。。。帮顶!
自己再顶一下
好像是没有 ......
Imports System.ComponentModel
Imports System.Web.UI
Imports System.Web.UI.Design
Imports System.Web.UI.WebControls
Namespace CBDAspNet.WebControls.HTML
''' <summary>
'' ......
最近在做个网上商城,购物车模块,没有做过,麻烦各位帮忙说下大致说下思路,能发一份源码更好。小弟先谢过各位了;
QQ:413763818;
eamil:swebook@126.com
网上一大堆!
www.51aspx.com
去下 ......
本人不会asp,报错了,请大家帮忙看看。
代码如下:
<%
dim keyword_Name,keyword_YJ,keyword_RQ
if rs("QS_PASS_1_name")<>"0,0" then
keyword_Name=split(rs("QS_ ......
A页面
<table width="200" border="1">
<tr>
<td>1</td>
<td>3</td>
<td><!--#include/top.html#-- ......