Display processing page then redirect when complete

Posted by user285379 on Stack Overflow See other posts from Stack Overflow or by user285379
Published on 2010-03-08T11:45:31Z Indexed on 2010/03/08 11:51 UTC
Read the original article Hit count: 384

Filed under:
|
|
|

I have a script that takes a while.

I'd like to display a page during the processing of the script then redirect when the process is complete.

E.g.: form.php -> processing.php -> display_result.php

I would like that processing.php is displayed immediately after form is submitted showing (Processing your information, please wait...)

Once processing is complete the page should be redirected to display_result.php

Is there anyway to sort of flush the content to the browser before processing begins, then redirect when the process is complete?

© Stack Overflow or respective owner

Related posts about php

Related posts about redirect