In other words if I want to check if $SESSION['temp'] = 'A',
do I also NEED to check isset($_SESSION['temp']) ?
If so, what logical IF statement works? I f have tried for an hour to come
up with a IF statement that works:
if ((isset($_SESSI ON['temp']))AND($_SESSION['temp'] = 'A'))
echo "set and same";
else
echo "not (set & same)";
if ((!isset($_SESS ION['temp']))OR(!$_SESSION['temp'] = 'A'))
echo "not set or not same";
else
echo "set or same)";
None seem to work
Thanks for help.
do I also NEED to check isset($_SESSION['temp']) ?
If so, what logical IF statement works? I f have tried for an hour to come
up with a IF statement that works:
if ((isset($_SESSI ON['temp']))AND($_SESSION['temp'] = 'A'))
echo "set and same";
else
echo "not (set & same)";
if ((!isset($_SESS ION['temp']))OR(!$_SESSION['temp'] = 'A'))
echo "not set or not same";
else
echo "set or same)";
None seem to work
Thanks for help.
Comment