RE: "Please wait" page while processing

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I used a little javascript to reveal a message, then submit the form.
Hence the message stays there until the next page loads:

<SCRIPT LANGUAGE="JavaScript">
<!-- 

function checkFields(fieldNames, displayText) {

	//etc...

	if(ok)
		document.all.please_wait.innerHTML="Storing data -
please wait";
	return ok
}
-->
</SCRIPT>

...
<input type="image"  onclick=" return checkFields()"
src="images/next_button.gif" name="next" border="0" value="submit"
alt="Next">

<span id="please_wait"></span>


Not that it's PHP, but it works...

Tim Owens

-----Original Message-----
From: Geoff Caplan [mailto:geoff@xxxxxxxxxxxxx] 
Sent: Saturday, 4 December 2004 7:52 a.m.
To: php-general@xxxxxxxxxxxxx
Subject: "Please wait" page while processing

Hi folks -

I'm writing a checkout.

When user submits their card details, I want to redirect
them to page with a "please wait" message. Then redirect to
the script that does the payment processing. Then when I
have the response from the gateway, redirect again to the
result page.

form -> message -> processor -> result_page

I've seen this done but I can't figure out how.

The browser (IE) simply shows the initial card details form
until the processing is complete, then shows the final
result page. I can't get it to show the message page in the
middle.

Any suggestions would be welcome!

------------------ 
Geoff Caplan
Vario Software Ltd
(+44) 121-515 1154 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux