At the entry point to the website, I have:
session_start();
session_register('msg');
from there, the user enters some data and gets sent to another page that has on it:
session_start();
[some processing stuff]
$msg="<br>Your information is safely stored.<br><br>You may now:<li><a href=page1.php>Continue shopping</a><li>View or change your addresses below";
header ("location: editaddresses.php");
The 'editaddresses.php' gets called, and that has
session_start(); at the top and includes a 'header.php' (which gets included on all pages) and has:
session_start();
if (session_is_registered('msg'))
{
print "$msg";
$msg="";
}
However, $msg does not get printed, even when the processing stuff above clearly indicates that it should be set.
I've also tried if ($msg!=""), but no luck there either.
Anyone have any clues as to what I'm doing wrong or need to be doing?
You'd be a life saver!