程序出错了,大家帮忙看看!!先谢了
<%
Set Conn=Server.CreateObject("Adodb.Connection")
C&Server.MapPath("database.mdb")
Conn.Open ConnStr
%>
<!--#include file=conn.asp-->
<%
dim loginname
loginname=trim(request.Form("txtusername"))
set rs=server.CreateObject("adodb.recordset")
sql="select loginuser,userpassword from account where loginuser='"& loginname &"'"
if rs.state=1 then rs.close
else
rs.open sql,conn,1,1
end if
if rs.eof and rs.bof then
response.Write "没有用户名".<a href=index.asp>返回</a>
response.End()
end if
if request.Form("txtpwd")<>rs.fields("userpassword")
response.Write"密码错误!"<a href=index.asp>返回</a>
end if
session("loginuser")=rs.fields("loginname")
response.Redirect("login.asp")
rs.close
conn.close
set rs=nothing
set conn=nothing
%>
这ASP出现了HTTP500的错误,不知道还有那里错了,请大家帮帮忙,看一下,万分感谢.