RE: [PHP] Credit card debiting and preventing the user from aborting

From: Date: Wed, 23 Aug 2000 11:28:42 +0000
Subject: RE: [PHP] Credit card debiting and preventing the user from aborting
Groups: php.general 
Request: Send a blank email to php-general+get-13134@lists.php.net to get a copy of this message
Addressed to: <php-general@lists.php.net> "Stefen Lars" <stefenlars@hotmail.com> ** Reply to note from "James Moore" <James@phpuk.org> Wed, 23 Aug 2000 10:41:42 +0100 > > > > I were to register ignore_user_abort and the user were to abort, > > would does > > this mean that nothing would be displayed in the browser when the > > script has > > come to its' logical end? > This is indeed the case I haven't tried all of this together, but I think it might work... Create an animated image of a status bar, say with 15 segments that increments every two seconds and a page like this: <? Ignore_User_Abort; # However this works... ?> <HTML> <BODY> Your transaction is being processed.<BR><BR> <IMG Src="Status.gif"><BR><BR> Please wait...<BR><BR> <? flush(); # Process the credit card # Send confirming email ?> The credit card was <?=$CCStatus?><BR><BR> </BODY> </HTML> If they hit stop, they don't see if it worked, but they still get the email. The phony status bar takes 30 seconds no matter what is realy happening, but hopefully it will keep them occupied for longer than the actual transaction takes. Make sure you close any <TABLE>s you start before the flush(). Some browsers won't paint any of a table till it parses the whole thing. Rick Widmer Internet Marketing Specialists www.developersdesk.com

« previous php.general (#13134) next »