Hi Folks,

Can I possible have some consructive critism on this code?

I basically want to check which type of member is logged in and then display the appropriate menu.

PHP Code:

else {   // if the user is logged in - display appropriate menu


if (isset($_SESSION['student_id'])) 

    {
    echo 
"student menu";
    }
    
    
if (isset(
$_SESSION['partner_id'])) 

    {
    echo 
"partner menu";
    }
    


Am I doing this right?
Could I do anyting different?

Many thanks