Alright, I need some help on this. It's a bit more complicated than what I've done before and what I tried got me nowhere close (as in the process quit working....put the trash bin to good use!).
Anyways, what I need to do:
The system I has there are 4 different types of users. Referees, Assessors, Assignors, and Administrators. I have a login deal set up where users enter a user name and password and it opens their account. Currently I have 4 separate login areas for each type. However, I want to set it up so that there is one login screen, and it will automatically redirect to the proper area.
In my database I am storing, along with the users personal info, there are 3 columns 'assessor' 'assignor' and 'administrator. (There is no 'referee' column because that is the default and 95% of the people using the system are such). Those with "special" priviledges in the 3 classes above have a "yes" entered into the column for which they are granted access.
So basically I need to do something where, when they log in, it will match their user name and password to their user id (done), it will then look to see if a "yes" appears in the admin,assessor,or assignor columns. If so it will redirect to the corresponding page:
assignor: /assignor_login.php
admin: /admin_login.php
assessor: /assessor_login.php
If none of those apply, then it goes to the default referee area /referee_login.php
I assume its just a matter of several "if then else" type statements, but I'm unsure of how to do it.
Thanks for any help.
Landis