Nagging session variable problem - again
I tried changing things nearly 100 times, but still cant get this last piece to work. I have a text area on the checkout page (checkout.php) and its ID is "Message"
On the following page (confirm.php) I am setting a session variable, right in with all the others that are being set, like this:
<?php
if (!session_id()) session_start();
if($_SERVER["REQUEST_METHOD"] == "POST") {
$_SESSION["checkout_message"] = "".((isset($_POST["Message"]))?$_POST["Message"]:"") ."";
}
?>
Then later on that same page, I am showing the text from that session variable like this:
<?php echo ((isset($_SESSION["checkout_message"]))?$_SESSION["checkout_message"]:"") ?>
This all works properly.
When I confirm the order I go to the last page in the process, checkout_success.php
On that page ALL the other session variables are displayed and work properly, except this problem one. I am trying to display it like this:
<?php echo ((isset($_SESSION["checkout_message"]))?$_SESSION["checkout_message"]:"") ?>
It comes out blank.
As I said EVERY other variable on the page shows up fine. I tried changing the name, creating an entirely new one, etc, etc, - literally 20 different things - as much as I could think of. There is nothing else on that page that could be preventing it from displaying, but I am including it as an attachment just in case. I have spent about 4 hours on this one simple thing and I am totally out of ideas.