Hello,
Ok i got this script that hides any content if your not logged in, as it checks if username is active *code below*:
if the username is logged in it will display the content that is wrapped in between "?>" and "<?php } ?>". heres an example below:Code:if($_SESSION["s_username"]
And that would display "if logged in" (Welcome Back, Username!).Code:<?php if($_SESSION["s_username"]){ ?> <p><DIV class=content-page-register style="width: 342px; height: 2px"> <font color="#808080">Welcome Back, <?php echo $_SESSION['s_username'] ?>!</font></DIV></p> <?php } ?>
But what i am after is that while it hides the content i want it to display a message something like:
"You must be registered or logged in, to use this feature" but i don't know what statement i would need to use to display that ? Any help would be very much appreciated.
Thanks,
Ben



.
Reply With Quote

Bookmarks