Jump to content


Photo

A little script


  • Please log in to reply
2 replies to this topic

#1 Plazman65

Plazman65
  • Members
  • PipPipPip
  • Advanced Member
  • 46 posts

Posted 08 March 2006 - 03:31 AM

Hi guys,I had this thing on my web page, I thought it was doing what I wanted, then I was looking at my homepage and realized that anything after this code doesnt show up anymore. Im confused as to why.
Any ideas? Thanks, Michelle


<?php
if ($_SESSION['MM_Username'])
{
echo 'Logged in as ' .$_SESSION['MM_Username'].
'<a href="membershipservices/thankyou.php">Logout here <a/>' ;
}
else
{
echo 'you are not logged in. Login Here<br/>'
.'<a href="membershipservices/loginpage.php">Login</a>';
exit;
}
?>

#2 php_b34st

php_b34st
  • Members
  • PipPipPip
  • Advanced Member
  • 168 posts

Posted 08 March 2006 - 06:38 PM

If it is only happening when the user isnt logged in it is because you have told the script to exit, try removing exit;

#3 Plazman65

Plazman65
  • Members
  • PipPipPip
  • Advanced Member
  • 46 posts

Posted 08 March 2006 - 07:50 PM

[!--quoteo(post=352930:date=Mar 8 2006, 10:38 AM:name=php_b34st)--][div class=\'quotetop\']QUOTE(php_b34st @ Mar 8 2006, 10:38 AM) View Post[/div][div class=\'quotemain\'][!--quotec--]
If it is only happening when the user isnt logged in it is because you have told the script to exit, try removing exit;
[/quote]
Thanks so much it worked! Michelle




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users