justAnoob Posted February 1, 2009 Share Posted February 1, 2009 I'm having a difficult time putting these two together echo $_SESSION['message']; and <a href="logout.php">Log out</a> I would like to have the log out link echo with the session message. Anyone? Quote Link to comment https://forums.phpfreaks.com/topic/143326-solved-session-message-and-a-href/ Share on other sites More sharing options...
NoPHPPhD Posted February 1, 2009 Share Posted February 1, 2009 echo ($_SESSION['message'] . '<a href="logout.php">Log out</a>'); Quote Link to comment https://forums.phpfreaks.com/topic/143326-solved-session-message-and-a-href/#findComment-751732 Share on other sites More sharing options...
justAnoob Posted February 1, 2009 Author Share Posted February 1, 2009 My session message will display properly. The logout link does not display. There are no errors also. Quote Link to comment https://forums.phpfreaks.com/topic/143326-solved-session-message-and-a-href/#findComment-751735 Share on other sites More sharing options...
Philip Posted February 1, 2009 Share Posted February 1, 2009 So, it won't show the link? echo $_SESSION['message'].' <a href="logout.php">Log out</a>'; is correct. Would display: The session message Log out Quote Link to comment https://forums.phpfreaks.com/topic/143326-solved-session-message-and-a-href/#findComment-751737 Share on other sites More sharing options...
NoPHPPhD Posted February 1, 2009 Share Posted February 1, 2009 Do you mean that if you click the logout link it's blank? Quote Link to comment https://forums.phpfreaks.com/topic/143326-solved-session-message-and-a-href/#findComment-751760 Share on other sites More sharing options...
justAnoob Posted February 1, 2009 Author Share Posted February 1, 2009 All it shows is the session message. There is no text there for the logout link. Quote Link to comment https://forums.phpfreaks.com/topic/143326-solved-session-message-and-a-href/#findComment-751786 Share on other sites More sharing options...
trq Posted February 1, 2009 Share Posted February 1, 2009 Post your code. Quote Link to comment https://forums.phpfreaks.com/topic/143326-solved-session-message-and-a-href/#findComment-751787 Share on other sites More sharing options...
justAnoob Posted February 1, 2009 Author Share Posted February 1, 2009 Sorry guys and gals. I figured it out. An obvious noob mistake. My header location was not set to the correct url. Thanks for the help though. Quote Link to comment https://forums.phpfreaks.com/topic/143326-solved-session-message-and-a-href/#findComment-751788 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.