关于asp用户权限的问题 在线等回复

来源:百度知道 编辑:UC知道 时间:2024/05/31 16:05:06
http://zhidao.baidu.com/question/37158803.html
关于asp用户权限的问题
悬赏分:25 - 离问题结束还有 17 天 23 小时
我是asp新手,现在把acc数据库里面的admin表分为password 和qx共2行,第一行是密码 第二行是权限 但是现在写login.asp的时候总是出现问题,麻烦高手帮忙解决一下 谢谢

程序代码在:http://hi.baidu.com/huangs416/blog/item/ea280f9466f82e1dd21b7031.html

谢谢大虾们
问题补充:只是修改login.asp就可以了
这个是我全部的分数 谢谢大家
米有人知道吗?

你好!
先把脚本错误提示下

<%if request("action")="Login" then%>
<!--#include file="conn.asp"-->
<%
password=Request.Form("password")
code=Request.Form("code")

if not isnumeric(code) then
Response.Write "<script>alert('Safe Code Error!');history.back();</script>"
Response.end
end if

if int(session("Login_Code"))<>int(code) then
Response.Write("<script>alert('Safe Code Error!');history.back()</script>")
Response.End
end if

set rs=conn.execute("select Password from [Admin] where password='"&trim(request("password))&"'") '这应该是request("password"))
dbpass=rs(0)
rsclose()
connclose()

If password ="" or password<>dbpass Then
Response.Write "<script>alert('Pass