Need assistance with Show/Hide behaviour
Hi Eric,
Thank you for your quick response. My login is set-up with the User Registration Solution Pack, so I would presume that a session variable is set once a user is registered, and then logs in. Would I be correct in assuming this?
If that is correct, then would the code you provided still work, also, does this code need to be on every page in the site. One more question, does the php code for the login form need to also be on every page or can it be put in the include file?
Remember in my original post, my login form is in an include file that is included in the Elevator Panel Magic widget from Project 7. The link again is www.pap911rescue.com the login form is in the green menu bar directly below the main nav bar, and it is the far right under member login.
Again thank you for your help and excellent products. As I mention I own almost every extension and now quite a few of the solution packs.
Larry
<?php if (isset($_SESSION['userID']) || $_SESSION['userID'] != ""){ //user is logged in ?>
<a href="your logout page">logout</a>
<?php } else { //the user is not logged in ?>
<a href="your login page">login</a>
<?php } ?>