<!--#include file="../conn.asp"-->
<% 
dim UserID,max,min
UserID = Trim(Request.QueryString("userid"))
max=int(Trim(Request.QueryString("max")))
min=int(Trim(Request.QueryString("min")))
if len(UserID)<min or len(UserID)>max then
  Response.Write("donot")
  Response.End()
end if

dim rs,sql
set rs=server.CreateObject("adodb.recordset")
rs.CursorLocation = 3
sql="select top 1 id from "&predb&"user where userid='"&UserID&"'"
opendb
rs.open sql,conn,1,1
if not (rs.eof and rs.bof) then
Response.Write "exists"
end if
rs.close
set rs=nothing
closedb
%> 