Jump to content

A little script


Plazman65

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;
}
?>
Link to comment
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
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

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.