emulate full post wth redirect
| From: | Shawn McKenzie | Date: | Thu, 06 Feb 2003 01:10:24 +0000 |
| Subject: | emulate full post wth redirect | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-134532@lists.php.net to get a copy of this message | ||
Wow, has it really been a year. No replies??? Any ideas??? Anyone???
Thanks!
Shawn
"Bobby Patel" <anup_patel@rogers.com> wrote in message
news:20030106060406.10909.qmail@pb1.pair.com...
> Hello, I want to emulate a POST request to Paypal. Originally a POST
request
> is sent from the user (through a form) and the user is redirected to
> paypal's site. Now, what I want to do is to emulate a POST request (so
that
> the surfer can't see some of the hidden fields of the form) and to deter
> tampering. (If they could see all the fields, they could just create their
> own form , and just change the amount).
>
> Possible solution:
> fsockopen to emulate POST, but that doesn;t redirect the user, using
header
> will direct the user to the paypal site, but then I have to use a GET
> request and then once again variables are visible and modifiable.
>
>
> Desired solution:
> a PHP script (toPaypal.php, say) that is called when a surfer wants to buy
> something for a product for $5 , say.
> The Product form will direct to the toPaypal.php script that creates a
POST
> request and sends the request and the surefer to Paypal.
>
> Any ideas? or did I just make this confusing? One solution I guess is to
> just double check the total amount credited to the merchant account
matches
> the product. But then I ask this question out of curosity.
>
>
>
>