Page 1 of 1

user authentication and conditional redirect by Login

Posted: Thu Feb 20, 2003 3:31 am
by phpRoundX
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

Posted: Thu Feb 20, 2003 9:53 am
by daven
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.

Posted: Fri Feb 21, 2003 3:29 am
by twigletmac
Please don't cross-post. Choose the most appropriate forum and post there. Additional threads will be deleted.

Mac