You could, in theory, submit your query to an intermediate file, which only
displays the "Searching" screen, but is querying your database and throwing
everything you need into hidden fields in a form.  Then have that form have
an onLoad submit to your results page.

I did this with HTML submitting to Perl submitting to PHP until we got the
PHP/DB problems worked out.  Here's what I wrote:


print "<html><head></head><body onload=\"document.HiddenForm.submit()\" >";
print "Page is loading, please wait";
print "<form name=\"HiddenForm\" method=\"POST\"
action=\"../../joinpoint/joinpoint.withimage.php\">";
print $hiddenData; 
print "</form></body></html>";

$hiddenData contained all of the values, in hidden data form, that I was
sending to my action script.

Good luck!  There is probably an easier way than this, but if no one else
comes up with it, at least you have something.

-Natalie

-----Original Message-----
From: Jeff Bearer [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, May 28, 2002 2:24 PM
To: Php-General (E-mail)
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