I've made a Web-Frontend. User can connect and access certain areas.
The Script includes admin-Areas. ...so far ...
Now my Problem:
The Script ist written in PHP and use a MySQL-DB. The Authentificationpart gets the Information out of an DB-Table. For one part, i need a script or code, wich checks a specific Login and redirect to a Infopage or so..
I think its possible to do that with a switch or if ????!!, but maybe someone knows a better way for that.
Jan
user authentication and conditional redirect by Login
Moderator: General Moderators
- daven
- Forum Contributor
- Posts: 332
- Joined: Tue Dec 17, 2002 1:29 pm
- Location: Gaithersburg, MD
- Contact:
if you are going to hardcode the logins, then a switch statement is your best bet. You might also want to consider having an additional column in your table which has various permission levels, and base the switch statement off of that column. That way, you will not have to alter your code every time you get a new user.
- twigletmac
- Her Royal Site Adminness
- Posts: 5371
- Joined: Tue Apr 23, 2002 2:21 am
- Location: Essex, UK