请教指导asp
<!--#include file="conn.asp"-->
<%
gladmin=request.form("admin")
password=request.form("password")
if admin="" or password="" then
response.write("<script language=javascript>alert('请填写资料完整!');history.go(-1);</script>")
end if
sql="Select * from admin where manager"=&myname"and password="&password
set rs=conn.execute(sql)
if rs.eof or rs.bof then
response.write("<script language=javascript>alert('密码或用户名不对!');history.go(-1);</script>")
else
session("admin")=gladmin
response.Redirect"mymanage.asp"
%>
各位素未谋面的朋友,帮忙看下我的代码,初次写asp代码,运行行总是出现500报错,技术有限,我看不出有什么错误的,麻烦各位高手指导指导下,谢谢!
[解决办法]
admin=request.form("admin")
password=request.form("password")
if admin="" or password="" then
response.write("<script language=javascript>alert('请填写资料完整!');history.go(-1);</script>")
Response.End
end if
sql="Select * from admin where manager= '" & admin & "' and password='" & password & "'"
set rs=conn.execute(sql)
if rs.eof or rs.bof then
response.write("<script language=javascript>alert('密码或用户名不对!');history.go(-1);</script>")
else
session("admin")=admin
response.Redirect "mymanage.asp"
[解决办法]
500错误,你把浏览器的选项-高级-显示友好http错误信息不打勾,就能看到具体的错误信息了