Here’s my scenario:
I have one page that collects certain data from the user.
I want to have one button that the user can click, and I want this button to do two things.
a) Log data to my database.
b) Redirect the user to Paypal to make a payment.
My current thought is to create an intermediate “handler” page which will do a) and then redirect the brower to b).
The question is: How do I actually do b)? (Is it some combination of JS and ASP?)
My hope is to have it behave exactly as if the data-collecting page had performed the POST to PayPal directly, but if that is not possible, I welcome other suggestions to implement my scenario.
The back end technology I am using is ASP.NET.
After some more specific Googling and testing, the solution that worked out for me was to use the code linked here:
http://www.codeproject.com/KB/aspnet/ASP_NETRedirectAndPost.aspx