I’m afraid no one has been able to help me with this problem, and it doesn’t strike me as very complex for anyone who’s a veteran with PHP. I will outline the problem again, but besides trying to simply keep alive a $_SESSION variable, I’ve been trying to embed it in the URL of page 3 because someone suggested this could help to keep it alive.
Page 1 is named bemine-central.htm,
Page 2 is named order-full-page.htm,
Page 3 is named payment-option-page.htm.
Here is the outline/summary of the problem:
I still haven’t figured out what’s happening as my $_SESSION variables are dying prematurely. In the process, I’ve tried to echo the SID, and got NOTHING! To review:
Page 1 – Hidden field (package_choice) is assigned a value via Javascript before its FORM is submitted.
Page 2 – I assign the value to a $_SESSION var using the following code:
$SESSION[‘package_choice’] = trim($
echo $SESSION[‘package_choice’];
The echo shows the value on page 2.
Page 3 – The following line displays NOTHING on page 3:
echo $SESSION[‘package_choice’];
On pages 2 & 3, I have the following at the top of both pages:
<?php
session_id();
session_start();
echo session_id();
?>
The echo displays session_id(), but on page 3 I also added this line: echo $_SESSION[‘package_choice’]; THIS PRODUCES NOTHING!
Using the advice of SCRAGAR, I tried to ensure that the SESSION ID was made part of the URL, and based my coding on his ACTION example:
ACTION=”payment-option-page.htm?from=<?php echo($PHP_SELF.”&”.session_id());?>”
That line of code got me the following error:
Parse error: parse error, unexpected ‘=’ in c:program filesapache groupapachehtdocsorder-full-page.htm on line 334
Can someone tell me what the hell is going on here? I’ve hit a brick wall with this stuff!!!
Thanks,
dmichael:mad: