I'm trying to write a search engine that will display the search results on the same page that contains the search form. <BR>In the action parm. for the form, I've specified the asp page. I'm not sure how to detect if it's their first time loading the page or not. I've defined an onclick event for the submit button - I set a flag.<BR>At the top of the page, the asp code checks to see if the flag has been set before building the SQL. However, this doesn't seem to work. Is this the best way to do this?