asp系统,用户登录本地测试正常,但上传到服务器无法登陆

来源:百度知道 编辑:UC知道 时间:2024/04/30 11:54:44
经检测是验证用户名那儿出问题了,不能与数据库验证,请大侠看看错误出哪儿了???

<!-- #include file="BGMConn.asp" -->
<!-- #include file="LIB/md5.asp" -->
<%
dim username,userpwd,YzCode,sql,rs,Login
username=lcase(trim(request.Form("Username")))
userpwd=trim(request.Form("Password"))
YzCode=trim(request.Form("valication"))
if username="" then
response.write "<script>alert('登陆出错:\n\n用户名不能为空!');location.href='index.asp';</script>"
response.End()
end if

if userpwd="" then
response.write "<script>alert('登陆出错:\n\n密码不能为空!');location.href='index.asp';</script>"
response.End()
end if

if YzCode=""then
response.write "<script>alert('登陆出错:\n\n验证码不能为空!!');location.href='index.asp';</script>"
response.En

没解决就HI我。

bgmconn.asp中对数据库路径的引用是否正确

你的服务器是Server 2003的必需开启权限才行的。

在服务器上 给你的网站数据库 加一个USERS或者IUSER用户附上修改权限