Hi,
Here's the scenario, all this is in order:
I do session_start(); as the first thing on every file. At the point of entry to the site, I have session_register('msg');
In the header, which gets loaded into every script after session_start(); is:
if ($msg!="")
{
print "$msg";
$msg="";
}
However, when I send data to a script for processing and set either $msg="something" and then do header ("location: fromurl.php"); no msg displayed.
However, if instead of:
header ("location: fromurl.php");
I do:
print "$msg";
exit;
the message prints fine. When I hit my browser's back button, the message shows up on every page as the variable msg has somehow made it into sessions.
How can I get msg to display using header:location?
Thanks for any help.