Jump to content

Recommended Posts

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                                                   

Link to comment
https://forums.phpfreaks.com/topic/265575-pls-help/
Share on other sites

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.

Link to comment
https://forums.phpfreaks.com/topic/265575-pls-help/#findComment-1361109
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.