headstress Posted August 5, 2013 Share Posted August 5, 2013 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 More sharing options...
AbraCadaver Posted August 5, 2013 Share Posted August 5, 2013 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. Link to comment https://forums.phpfreaks.com/topic/280858-1-login-form-3-different-types-of-user/#findComment-1443569 Share on other sites More sharing options...
headstress Posted August 5, 2013 Author Share Posted August 5, 2013 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 https://forums.phpfreaks.com/topic/280858-1-login-form-3-different-types-of-user/#findComment-1443572 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.