Hello all,
So I am working on a personal project with a login script that will limit certain sections of a website depending on how you signed up, or in essence your “privilege”. I know how to do the rest, however this is the first time I have done something like this, so I would like if someone could take a look at this code, and see if its correct. I don’t think there are any errors, but any comments are welcome!
[code=php]
<?php
if($_SESSION[‘loggedA1’]==1)
{
/*show html code 1 here */
}
elseif
($_SESSION[‘loggedA2’]==1)
{
/*show html code 2 here */
}
elseif
($_SESSION[‘loggedA3’]==1)
{
/*show html code 3 here */
}
else
{
/*kill the process */
}
?>