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

Link to comment
https://forums.phpfreaks.com/topic/280858-1-login-form-3-different-types-of-user/
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.

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.