Hi everyone,
A site that I am working on is setup so that when a customer attempts to purchase a product, upon clicking submit (purchase) it takes them back to that same php file and goes through a series of validations through an if isset statement... Upon success, it then redirects to paypal, passing the product items into the paypal url.
I have now been asked to change the structure so that upon clicking submit, after passing validation, it will take the user to a new page with a contract where they have to click a checkbox agreeing to the terms, and then clicking submit again-- this time it will go to paypal.
So, I was curious-- is there a better way to re-pass the same variables over to paypal from the contract page?
The way I was figuring doing this was just, within the store page-- my redirect would go to contract.php?product=123&name=great%20product&price=55.55
and then in the contract I would just do a bunch of $product = _GET['product']
and the form action would just go to paypal with those variables set...
but I was wondering, if there is a better way to go about doing this sort of thing?
thank you.
-patrick