Posted by damezumari on 06/13/07 16:33
Yes, error checking is on in php.ini.
I have found my error:
Further down in the main program I had a new assignment to
$_SESSION['classtitle']:
$_SESSION['classtitle'] = 'b';
echo 'main: '.$_SESSION['classtitle'].'<br />';
unset($_SESSION['classtitle']);
echo '<p><a href="test.php">test</a></p>';
...
...
...
$_SESSION['classtitle'] = a;
It is of course the last assignment to $_SESSION['classtitle'] in the
main program that is in effect when the user clicks the link to
test.php, not the last assignment before the link.
Silly me! :)
Thanks for the responses!
Regards,
Jan Nordgreen
Navigation:
[Reply to this message]
|