Jump to content

1 login form 3 different types of user


headstress

Recommended Posts

Hi

 

I am trying to set up a Recruitment site and on the home page I have a login form that I have got working fine, my question to see if this is possible:-

 

Can the one login form direct me to he right area

 

So if an employer logs in then they will to to their page

if the agency logs in from  the same login form it goes to  their page

and finally job seeker goes to there own members area

 

I have been trying to think how to do it but getting lost with it all as I am not a fully functioning guru in php

 

 

Thanks for any pointers

Edited by headstress
Link to comment
Share on other sites

Well, at its simplest, you would have a groups table with all user ids and their groups.  Upon login when querying for the username you would join the groups table and lookup the group.  Then just use an if or switch to decide where to redirect.

 

Right ok just to understand this

 

In my registration form I have a selection for

 

Are you:- Recruiter, Agency, Jobseeker

 

then have a table in the database called groups where EVERYONES data goes, then do the queries on my login script to direct them to the right member page upon successful login

Link to comment
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.