<!-- #include file="include/conn.asp" -->
<% 
'website:http://www.angelasp.com
' Angel工作室技术开发团队:QQ:815657032、QQ：709047174
' Copyright (C) Angel工作室 (http://www.angelasp.com).  All rights reserved
  book_name = request.form("username")
  book_password = request.Form("password")
   sql="select * from [Admin] where 1=1 and book_name='"&book_name&"'and book_password='"&book_password&"'"
  set rs=server.CreateObject("adodb.recordset")
  rs.Open sql,conn,1,1
  If Not rs.eof Then  
      Response.Cookies("adminuser")("book_name") = rs("book_name")
	  rs.Close
      set rs=Nothing
      
 ' response.write ("<script language='javascript'>alert('"&book_name&"__"&book_password&"');</script>")

     response.redirect("admin_index.asp")       
  else  
	  response.write ("<script language='javascript'>alert('账号或密码错误');location='index.asp';</script>")
  End If
%>