Plazman65 Posted March 8, 2006 Share Posted March 8, 2006 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 <?phpif ($_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 https://forums.phpfreaks.com/topic/4402-a-little-script/ Share on other sites More sharing options...
php_b34st Posted March 8, 2006 Share Posted March 8, 2006 If it is only happening when the user isnt logged in it is because you have told the script to exit, try removing exit; Link to comment https://forums.phpfreaks.com/topic/4402-a-little-script/#findComment-15471 Share on other sites More sharing options...
Plazman65 Posted March 8, 2006 Author Share Posted March 8, 2006 [!--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 https://forums.phpfreaks.com/topic/4402-a-little-script/#findComment-15489 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.