headstress Posted August 5, 2013 Share Posted August 5, 2013 (edited) 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 August 5, 2013 by headstress Quote Link to comment 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. Quote Link to comment 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 Quote Link to comment 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.