<%dbs="../"%>
<!--#include file="../inc/config.asp"-->
<!--#include file="uccook.asp"-->
<!--#include file="uc.asp"-->
<%
ucuser=request("ucuser")
ucpass=request("ucpass")
'防止转出错误
'防止结束
if ucuser="" then
response.Write "<script >alert('提示：\n\n对不起，用户名不能为空,请填写用户名...');history.back(-1);</script>"
response.end
end if
if ucpass="" then
response.Write "<script >alert('提示：\n\n对不起，密码不能为空,请填写密码...');history.back(-1);</script>"
response.end
end if
mi=ucpass
'''''''开始查询
set rs=server.createobject("adodb.recordset")
	sql="select * from H_user where ucuser='"&ucuser&"' and ucpass='"&mi&"'"
	rs.open sql,conn,1,1
 	if not(rs.bof and rs.eof) then
			session("Uid") = rs("id")
			session("ucuser") = rs("ucuser")
			'操作用户登陆的IP
			response.Redirect "../user/index.asp"
response.end
end if
%>