this way uses sessions
the following line will set $seshusername to either the current username or guest if the session variable has not been set
if (isset($SESSION['name'])) {
$seshusername = $SESSION['name'];
} else {
$seshusername = "guest";
rather than coding two different menus you can insert or delete links from the menu using the following code.
if the person has not logged in:
<? if ($seshusername=="guest"){?>non member links here<? }?>
if the person has logged in then
<? if ($seshusername!="guest"){?>member links here<? }?>
one dynamic menu.
ps if the login form is in the 'main' pane not the 'menu' pane then you will need to refresh the 'menu' pane when the form is submitted otherwise there will be no change in the layout of your menu