Log in

View Full Version : I dont even know how to title it :)



metrathon
06-16-2010, 07:12 PM
Ok, here's my issue:

I have an order confirmation page (A), an order process page (B) and then an external payment gateway (C).

So I need to have the user confirm the order on A, I'm POST-ing all the info to B (writes the order in the database) but then I need to POST again all the info to C.

The thing is B is invisible for the user, the page just writes what have been POST-ed from A and then just redirects to C.

How can I do this? Or do you have a better idea of a road map?

God bless you :)

bluewalrus
06-17-2010, 03:31 AM
You could use sessions or cookies with a header, include, and/or require.

fileserverdirect
06-17-2010, 04:37 AM
Yes, you can use sessions, on page B just write


session_start();
$_SESSION['var'] = $_POST['var']

Then on page C:


session_start();
echo "You submitted ".$_SESSION['var']." on page A";