Hi,
still struggling with if condiitons.
I'm trying to do the following:
if $HTTP_SESSION_VARS['MM_UserAuthorization']='admin'
then display link: <a href="MasterAccount.php">Account</a>
Basically, after the user has logged in, if his user authentification is admin, then display the link "Account" on the page.
Could you show me an example of code for doing that?
Thanks,
vinny
if condition
Moderator: General Moderators
- Fredix
- Forum Contributor
- Posts: 101
- Joined: Fri Jul 18, 2003 2:16 pm
- Location: Wehr (Eifel) Germany
- Contact:
actually your problem isn't really clear since you almost wrote the whole code...
probably you should read http://de2.php.net/manual/en/control-structures.php
Code: Select all
<?php
if ($HTTP_SESSION_VARS["MM_UserAuthorization"] == "admin")
echo "<a href="MasterAccount.php">Account</a>";
?>