I am new to php so forgive my greenness. I've also looked in the online php manual for basics on session variables. I am simply trying to set a variable called "newcust" to either tru or false. The page only recognizes this variable as true no matter where or when I change it. I am changing it after session.start() as I've seen in the manual. What I have is simply:
Then on my page:
and yet it returns TRUE. I'm sure I'm missing something simple. I'd appreciate any suggestions. Thanks!
Code:
case 'edit_cust':
$_SESSION["newcust"]=FALSE;
if ($sxr->can_edit(2)) {
$popup_file = INCLUDE_DIR.'/popups/agent/customer_details.php';
}
Then on my page:
Code:
<?
if ($_SESSION["newcust']=FALSE){
?>
<a class="item" onclick="saveEdit();" href="#">
<img src="<? echo $img_dir; ?>/small_icons/save.gif" />Save & Close</a>
<?
}
?>
and yet it returns TRUE. I'm sure I'm missing something simple. I'd appreciate any suggestions. Thanks!