First thank you for your insight and time.
I do not think I can use the meta tag option because I do not know how long the operation will take.
I tried the second option you mentioned before. The problem I have is between steps 2 and 3. Options I have tried, but failed at:
input form
check for valid input function
wait page
run query
input form
wait page
check for valid input
run query
None of which worked. I use header() to call the subsequent page, but it seems not matter what I do I see the input form, then wait, then I see the output. The only time I see the wait page is if I comment out the header() to run the query.
Do you have any other sugguestions? Does cache-control have anything to do with this problem?
Originally posted by rinjani
You can do it in a couple of ways.
If you know it'll be a maximum amount of time then use a META tag redirect to a specific URL and then on to the second page.
Another way might be to send the query over and do something like include a "wait" page in your code (or echo it out) and then run the query, do your stuff to the result set and once that is run the code will display the final page either by echo/print statements of by sending evrything to the final page.
For instance I usually use a template system so I might do the following steps:
- collect my query from input form
- display wait page template
- run the query
- run my data modifications and build html strings or whatever
- send all the data to my result page
and display the result page.
Hope this gives you an idea to build on
rinjani [/B]