benzie852
04-07-2007, 04:28 PM
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($_SESSION["s_username"]
if the username is logged in it will display the content that is wrapped in between "?>" and "<?php } ?>". heres an example below:
<?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 } ?>
And that would display "if logged in" (Welcome Back, Username!).
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
Ok i got this script that hides any content if your not logged in, as it checks if username is active *code below*:
if($_SESSION["s_username"]
if the username is logged in it will display the content that is wrapped in between "?>" and "<?php } ?>". heres an example below:
<?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 } ?>
And that would display "if logged in" (Welcome Back, Username!).
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