Re[2]: [PHP] witing for a post

From: Date: Sat, 22 Sep 2001 18:43:13 +0000
Subject: Re[2]: [PHP] witing for a post
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-68347@lists.php.net to get a copy of this message
Sorry Jack - thanks for the answer... I probably didn't explain it correctly. From page A users have a link to reach the gateway (via POST) leaving my site (this opens a new browser page). As soon as they leave the site, page A changes to another page let's say B. The URL of page B is what I pass to the gateway to have the answer back. Users, once reached the gateway, application fill in their data and the payment is processed. A confirmation/denegation page is shown and that's it. So page B should "wait" there for the gateway's answer... for example reloading every x seconds using a Javascript REFRESH or something like that. The script will process what in HTTP_POST_VARS... while waiting B will output something like "Processing you payment.." and when it receives the answer from the gateway it must update some database table and display a final confirmation or output a "transaction not successful". Thanks Gianluca JD> not sure i follow Gianluca...the script will stay there, its not going JD> anywhere, so why does it need to "wait"? it'll process whatever info is sent JD> to it........ JD> -jack JD> -----Original Message----- JD> From: Gianluca Baldo [mailto:webmaster@phpauction.org] JD> Sent: Saturday, September 22, 2001 2:06 PM JD> To: php-general@lists.php.net JD> Subject: [PHP] witing for a post JD> Hi all - JD> i have set up a credit card gateway interface. The gateway sends an JD> answer to a URL (i.e. http://www.domain.com/answer.php) JD> I pass to it with the some other data. JD> My bank documentation is poor and the support is worst. JD> My question is: how do I make my script at JD> http://www.domain.com/answer.php JD> to wait for the answer? JD> The gateway send its answer via POST to the URL I specify but I don't JD> know how to "stay there listening for the answer". JD> Any idea? JD> Thanks in advance JD> Gianluca JD> -- JD> ALBASOFTWARE JD> C/ Mallorca 186 - 3º 1ª JD> 08036 Barcelona (Spain) JD> Tel. +34 93454009 - +34 934549324 JD> Fax. +34 934541979 JD> webmaster@albasoftware.com JD> http://www.albasoftware.com JD> http://www.phpauction.org JD> http://www.gianlucabaldo.com JD> -- JD> PHP General Mailing List (http://www.php.net/) JD> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net JD> For additional commands, e-mail: php-general-help@lists.php.net JD> To contact the list administrators, e-mail: php-list-admin@lists.php.net -- ALBASOFTWARE C/ Mallorca 186 - 3º 1ª 08036 Barcelona (Spain) Tel. +34 93454009 - +34 934549324 Fax. +34 934541979 webmaster@albasoftware.com http://www.albasoftware.com http://www.phpauction.org http://www.gianlucabaldo.com

« previous php.general (#68347) next »