Re: Vars in URL
| From: | Justin French | Date: | Sat, 08 Feb 2003 11:28:59 +0000 |
| Subject: | Re: Vars in URL | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-134863@lists.php.net to get a copy of this message | ||
on 06/02/03 10:03 AM, Shawn McKenzie (nospam@mckenzies.net) wrote:
> I am trying to do something simple to sell items with paypal. One of the
> options paypal has is a return url, so that after the buyer pays via the
> paypal website they are forwarded to the return url (my site) so they can
> access some info..
>
> The problem is that the form on my site that collects info and posts to
> paypal has the hidden return url vars in it. So a simple view source in the
> browser reveals the return url.
>
> So what I did is made a form that submits to a php script on my site that
> then adds the appropriate paypal vars and submits to the paypal site. I
> used header(Location:"), but this shows the return url var in the url
> address bar. I want to pass vars to paypal without them being shown in the
> url address bar.
Not a chance really -- you can't use cookies (essentially the third way to
do pass vars around), because cookies are tied to a specific domain.
I say if the rest of society can deal with POST and GET vars for Paypal etc,
then so can you :)
Justin