以下是一个页面的例子。
321.asp文件内容
<html><head></head><body><form action=123.asp name=form1>
请输入你要找的人的年龄:<input name=age value=13 size=5>
</form>
</body></html>
123.asp文件内容
<html><body>
<%set rs=server.createobject("adodb.recordset")
strconn=.......................
rs.open "select * from boys where ages="&request("age"),strconn,1,1
if not rs.eof then%>
年龄是:<%=rs("ages")%>
姓名是:<%=rs("names")%>
<%rs.movenext
end if
rs.close
set rs=nothing
%>
</body></html>