|
Posted by Jim Evans on 06/07/05 17:28
Hi All
I'm building a shopping cart that ties in with PayPal for payments.
After working out the postage charge, I want the user to be able to
confirm if they'll sign up to a newsletter or not, and then to be taken
to Paypal. I'd like to do all that with just one click.
Paypal only lets you pass one hidden variable, and I need that to
identify the customer in the back end stuff, so I can't check on the
newsletter thing after payment.
I'm looking for a way to process the form input myself, before sending
the user to PayPal. How can I add POST data to a "Location" header?
Although I could do it by sending them to a script that does the
processing for the newsletter, and then uses javascript to submit the
form values using post (e.g. <body onload="formname.submit();">) I'm
trying to keep it javascript free, so it'll be 100% accessible.
Anyone know how to add the headers (or have a suggestion how else I can
do this)?
Thanks
Jim
[Back to original message]
|