Forum Moderators: coopster

Message Too Old, No Replies

PHP Loading Page

         

JustJon

9:54 pm on Feb 16, 2005 (gmt 0)

10+ Year Member



Heyas. I'm trying to build a page that takes form data, processes it in a second page, then sends the user to a third, depending on data processing.

On the second page, I am trying to get the page to have some sort of "Loading" message while the backend processes the data, but I can't seem to get anything to work. Does anyone know how I can get that Loading message to display?

Thanks alot.

hakre

1:26 am on Feb 17, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



hi justjon,

maybe flush() [php.net] is your friend. you could echo out the loading message, flush() the output and then do the processing. after processing, output a javascript that will switch to the third page (ie:

<script type="text/js">document.location.href='http://my.dom/page3.php';</script>
) and you're done.

coopster

4:03 am on Feb 17, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Welcome to WebmasterWorld, JustJon.

I believe there is a PEAR package that handles this as well ... can't think of the name off-hand ... perhaps HTML_Progress [pear.php.net]?

JustJon

2:59 pm on Feb 17, 2005 (gmt 0)

10+ Year Member



I had tried the flush(), but it seemed to wait until the processing was done to put out my message, and wouldn't redirect.

I'll look into that PEAR package.

Thanks.