December 26th, 2012, 03:43 PM
Can someone help in general design?
I have an HTML page with a form to make a reservation. The form action is a PHP file that processes the form information: sends an email and allows the user to pay using PayPal.
It works OK except when the user wants to "continue shopping" from PayPal. This brings the user back to the PHP page which sends another email and loses the form information. I think I need to use a PHP session but I'm not sure where this session should begin in the page with the form or the "processing page."
Thanks for any help!
December 26th, 2012, 04:38 PM
Originally Posted by robi1
I'm not sure I understand. I have added the following to the second (processing page):
and then for each variable passed from the html form page:
$_SESSION['variablename'] = $_POST['variablename'];
The variable shows up for the first call to the PHP processing page but disappears once the user "continues shopping" on PayPal.