<!--#include file="conn.asp"-->

<%set rs=server.createobject("ADODB.Recordset") 
     sql="select * from user  where username='"&trim(request("txtname"))&"' and pwd='"&trim(request("txtpwd"))&"' "
     rs.open sql,conntmp,1,1
	if rs.eof and rs.bof then
		response.Redirect "default.asp"
	else
	session("admid")=trim(request("txtname"))
	session("pwd")=trim(request("txtpwd"))
	session.timeout=60
	 rs.close
	 set rweek=nothing
	response.Redirect "search.asp"
	
	end if
	
	
%>	