Jump to content

Archived

This topic is now archived and is closed to further replies.

Plazman65

A little script

Recommended Posts

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;
}
?>

Share this post


Link to post
Share on other sites
If it is only happening when the user isnt logged in it is because you have told the script to exit, try removing exit;

Share this post


Link to post
Share on other sites
[!--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) [snapback]352930[/snapback][/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

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.