RE: [PHP] Intermediate "Searching..." screen.

From: Date: Tue, 28 May 2002 18:30:18 +0000
Subject: RE: [PHP] Intermediate "Searching..." screen.
Groups: php.general 
Request: Send a blank email to php-general+get-99527@lists.php.net to get a copy of this message
What you want to do is post the form, display a searching screen, and then on that same screen... well, like this, I think: <form target=<?= $PHP_SELF; ?>> <input type=text name=foo> <input type=submit name=submit value=Submit> </form> <? if ($Submit) { echo "Searching.<br>\n"; go_go_gadget_query(); // above line takes a while but the aboev is already echoed so // they wait display_results(); } ?> Regards, Ian Samuel >-----Original Message----- >From: jbearer@pittsburghlive.com [mailto:jbearer@pittsburghlive.com] >Sent: Tuesday, May 28, 2002 1:24 PM >To: php-general@lists.php.net >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 > >

« previous php.general (#99527) next »