close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Nagging session variable problem - again

Thread began 4/16/2009 7:47 am by neileisen207079 | Last modified 4/16/2009 2:56 pm by neileisen207079 | 3035 views | 7 replies

neileisen207079

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.

Attached Files
New Folder.zip

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...