[FX.php List] How do I hide a set of links?
Alex Gates
alex at gandrpublishing.com
Sat Jul 14 16:25:22 MDT 2007
Hi Jon -
how about:
<?php if($_SESSION['user'] == "manager"){?>
<a href="http://www.....">Link for managers only</a>
<?php } ?>
be sure to start your session at the top of the page, too - session_start();
Jon Montgomery wrote:
> I am using session data at login. On my following pages, how do I "hide"
> certain page links from the "users" and show them to the "managers"?
>
> I have tried some code, but am unable to make it work. Also have searched
> php.net and get no where.
>
> Any help will be greatly appreciated.
>
> Jon Montgomery
More information about the FX.php_List
mailing list