dt_gry Posted October 17, 2008 Share Posted October 17, 2008 I am trying to setup 2 separate menus one for visitors and one for members, I have the site setup where everything is loaded on top of index.php so you have like index.php?section=home or index.php?section=login. I am wondering is it possible to do a test if the user is logged in and have that menu load via index.php based on a true/false answer. If anyone can point me in the right direction it would be great. Thanks guys. dt_gry Quote Link to comment Share on other sites More sharing options...
rhodesa Posted October 17, 2008 Share Posted October 17, 2008 Well, when someone successfully logs in, you should store something in the SESSION (usually the username). Then, when you are loading your menu, you can check for he existence of that value and just do an IF/ELSE for each menu. Make sense? Quote Link to comment Share on other sites More sharing options...
dt_gry Posted October 17, 2008 Author Share Posted October 17, 2008 Wonderfuly TY rhodesa. Quote Link to comment 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.