高手们帮帮忙啊,看看哪错了..
<!--#inciude file="Conn.asp"-->
<% dim name
dim pwd
name=Trim(request.Form("name"))
pwd=Trim(request.Form("pwd"))
If name="" or pwd="" then
response.Write "<script>alert('请输入用户名或密码!');history.go(-1);</script>"
response.End
else
Set Rs = Server.CreateObject("ADODB.Recordset")
Sql = "Select * From [user] Where name = '"&name&"'"
Rs.Open Sql,conn,3,3
if Rs.bof or Rs.eof then
response.Write "<script>alert('你还没有注册!请注册!');history.go(-1);</script>"
rsponse.End
ElseIf name=Rs("name") and pwd=Rs("pwd") Then
session("name")=Rs("name")
session("flag")=Rs("flag")
Rs("login_time")=now()
Rs.Update
id=Rs("id")
response.Redirect("Default.asp")
else
response.Write "<script>alert('用户名或密码错误!');history.go(-1);</script>"
rsponse.End
end if
end if
Rs.close
set Rs=noting
%>
错误类型:
ADODB.Recordset (0x800A0BB9)
参数类型不正确,或不在可以接受的范围之内,或与其他参数冲突。
/ChkLogin.asp, 第 15 行
浏览器类型:
Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)
网页:
POST 42 ??? /ChkLogin.asp
POST Data:
name=admin&pwd=123456&Submit2=%CC%E1%BD%BB