I am pretty new to php and I am trying to write a login script that will authenticate users and also forward them to a particular page based on the type of user.
I have a user table
typeid (referenced from a table type which has 'user', 'admin', and 'manager' )
So what I want to do is once the user has been authenticated, we will look at the type of user and based on that they will be forwarded to the appropriate page(eg. userpage.php or adminpage.php etc) and display to the user what they are logged in as. Thanks
ps. I am starting to write this application, so i will have more questions later..more points if you will be able to help me with this :)