Search screens are a tricky prospect and none seem to work very well.
However you could try one of the following techniques...

Instead of the submit button initiating a search it initiates another script
that displays the 'searching...' message and only after it has outputted
that to the screen does it initiate the search.  The last line in that
script would be a redirect back to your results page.

Another way to do it would be to set up a couple of Javascript functions.
Echo one to open the 'searching...' screen prior to initiating the search.
Then at the end of the script echo the other javascript function to close
the 'searching.. ' screen.  But I've implimted a version of this for an
upload script and it didn't work so hot.

Er.. umm.. anyone got any other bright ideas?

-Kevin

----- Original Message -----
From: "Jeff Bearer" <[EMAIL PROTECTED]>
To: "Php-General (E-mail)" <[EMAIL PROTECTED]>
Sent: Tuesday, May 28, 2002 12:23 PM
Subject: [PHP] Intermediate "Searching..." screen.


> I have a part of my site that searches a large database and sometimes it
> takes more than a few seconds to return the results.  When searches take
> longer, people get antsy and search again.  To let them know that the
> search is working so they don't double efforts I'd like to have an
> intermediate "Searching..." screen.
>
> I don't have a good idea on how to do this and I'm looking for some
> ideas or directions. How do I show one thing while the search is running
> and another when the search is complete and also not loose the returned
> record set?
>
> --
> Jeff Bearer, RHCE
> Webmaster
> PittsburghLIVE.com
> 2002 EPpy Award, Best Online U.S. Newspaper
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to