Re: "Please wait" page while processing - SOLVED
| From: | Geoff Caplan | Date: | Sat, 04 Dec 2004 17:38:23 +0000 |
| Subject: | Re: "Please wait" page while processing - SOLVED | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-203493@lists.php.net to get a copy of this message | ||
Hi
For anyone interested, it was a combination of issues.
First, I had to use flush() and ob_end_flush() combined to
get the page to display in IE. end_flush didn't work on its
own.
Second, I was being dim in redirecting away from the message
page - because of course it won't display after a redirect.
So you have to do the processing in the message script,
saving the result to the session. Then keep polling the
message page with a client-side refresh till the gateway
processing completes and you can re-direct to the result
page.
GC> I'm writing a checkout.
GC> When user submits their card details, I want to redirect
GC> them to page with a "please wait" message. Then redirect to
GC> the script that does the payment processing. Then when I
GC> have the response from the gateway, redirect again to the
GC> result page.
form ->> message -> processor -> result_page
GC> I've seen this done but I can't figure out how.
------------------
Geoff Caplan
Vario Software Ltd
(+44) 121-515 1154