Hi,
I hope someone can help me. I have a kennel booking system and I pass session variables through the booking process, it's all ok except for some values are not being passed. I'll try and explain.
At the Confirmation screen I echoed the session variables immediately BEFORE moving to the 'Thank You' page, a selection of the variables are below.
Key: from_ymd; Value: 2011-06-21
Key: to_ymd; Value: 2011-06-28
Key: daysX; Value: 8
Key: dailyX; Value: 79.20
Key: bankX; Value: 26.40
Key: xmasX; Value: 39.60
Key: additionalX; Value: 0.00
Key: dailyXexVat; Value: 90.2
Key: bankXexVat; Value: 22
Key: xmasXexVat; Value: 33
Key: total_costX; Value: 145.20
When I get to the 'Thank You' page the variables now look like this
( I get there with
header("Location: booking_form_thanks.php?t=dog");
and I echoed immediately after the session stuff shown below)
Key: from_ymd; Value: 2011-06-21
Key: to_ymd; Value: 2011-06-28
Key: daysX; Value: 8
Key: dailyX; Value: 0.00
Key: bankX; Value: 0.00
Key: xmasX; Value: 0.00
Key: additionalX; Value: 0.00
Key: dailyXexVat; Value: 0
Key: bankXexVat; Value: 0
Key: xmasXexVat; Value: 0
Key: total_costX; Value: 0.00
As you can see some of the numeric values have been reset.
I have no code to reset or change the values from one page to the next and it's making me smack my head against the wall.
I have the following at the top of EVERY page (I've commented out the path for security)
session_save_path('/xx/xx/xx.com/xxx/pathsess');
session_start();
extract ($_GET); extract ($_POST);
Any help or advice please?
Many thanks
JG