vinsux Posted July 12, 2012 Share Posted July 12, 2012 Pls. help..... is there a method that you can set two links in an <a href>..? If the logged in is student.. the HOME Button will redirect to student page If the logged in is faculty... the HOME Button will redirect to student page.. Thank Quote Link to comment https://forums.phpfreaks.com/topic/265575-pls-help/ Share on other sites More sharing options...
PFMaBiSmAd Posted July 12, 2012 Share Posted July 12, 2012 No. A link is a link. When clicked, it goes to the target page that is in the link. You shouldn't have separate pages anyway, because anyone can enter a page address into their browser's address bar and request any page. The code on each page must enforce who may access that page and what anyone can do or see on any page. You should have one link that goes to a 'home' (index) page and the code on that single page tests what privileges the currently logged in user has and output the appropriate content/menus... on that page. Quote Link to comment https://forums.phpfreaks.com/topic/265575-pls-help/#findComment-1361109 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.