In my project once I have processed a booking I am trying to get a summary of the booking to display on the successful booking page, so far I have added an extra $_SESSION data to the page that processes the users login:
session_start();
$_SESSION['username'] = $username;
$_SESSION['email'] = mysql_result($result, 0);
$_SESSION['ourdate'] = date('m/d/Y');
$_SESSION['booking'];
The bottom line is for the booking summary.
On the process booking page I have added:
$data = "You have successfully made a booking for '$name' in room '$room' on the '$newDate' for the following times '$start_Time' to '$end_Time'";
It is here that I try to assign the above to the $_SESSION:
$_SESSION['booking'] = $data;
And then the site is directed to the booking success page:
header("Location: http://webdev/schools/hhs/psy_bookings/process_booking_success.php"); //booking success page
But when I get to the booking success page nothing is displayed, this is the code that I have used to display the booing summary:
<div id="wholepage">
<?php echo $_SESSION['booking'];?>
</div>
Can you please help?, the data is not in a form so that is why I have not used the $_POST option