Hi there
I want to create a login page where 2 types of people come to 1 login page. users and administrators. Let's call this login page login.php.
So if a user comes in and logs in, they go to a client profile page (call it edit_user.php) and if an administrator logs in they go to a master user list page (call it client_list.php).
What would be the best way to a) flag the users/administrators and create that redirect on that login page?
I thought that maybe the users, when they register could be flagged in the DB as users (ie-create a field called "access" and put a value of "1" in there) and when when the login page runs the script, checks to see the "access" level, if "1" go here, if NULL, go there?
Does that make sense? You're input is greatly appreciated.