flynryan692 Posted July 23, 2009 Share Posted July 23, 2009 Hello, I'm trying to make it so if they are logged in or out it shows a certian php file...its not working..any ideas? Sorry if this is an easy question..I'm still learning. Here is what I have. <?php if(!session_is_registered('callsign') AND !session_is_registered('password') AND !session_is_registered('email') AND !session_is_registered('name') ){ echo (include 'content/side.php'); } else { echo (include 'content/pilots.php'); } ?> Quote Link to comment https://forums.phpfreaks.com/topic/167067-echo-include-blahphp-help/ Share on other sites More sharing options...
trq Posted July 23, 2009 Share Posted July 23, 2009 session_is_registered has been depricated, use the $_SESSION array instead. Quote Link to comment https://forums.phpfreaks.com/topic/167067-echo-include-blahphp-help/#findComment-880921 Share on other sites More sharing options...
Bizty Posted August 11, 2009 Share Posted August 11, 2009 You dont need to echo your include just: session_start(); if(!$_SESSION['callsign] && !$_SESSION['password'] && !$_SESSION['email'] && !$_SESSION['name']) { include('content/side.php'); } else { include('content/pilot.php'); } Quote Link to comment https://forums.phpfreaks.com/topic/167067-echo-include-blahphp-help/#findComment-895629 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.