<!--#include file="conn.asp"-->
<%
admin=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 admin='"&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")="denglu"
response.redirect "index.asp"
end if
%>