php user login

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sreenisha
    New Member
    • Aug 2008
    • 27

    php user login

    HI
    I have got a php login form and the database entries for that form are just username and password.I have got 3 users-Admin,Accountan t and guests (which is the users who access from outside like john,David etc..etc).How can i set the login form such that when each type of user logs in there home page should be seen.I have tried it but for all the users the same page is seen.My database is postgresql.

    Anyone plz help me to clear this.
    Thanks in advance
  • nathj
    Recognized Expert Contributor
    • May 2007
    • 937

    #2
    Based on your very vague question there are a lot of potential answers. I would think that you need store the homepage URL against the user and then when the log in redirect to that page. You would need to provide some way of the user setting the homepage value.

    If you mean something more like iGoogle where it's the style that is set then it's a similar idea but importing a style sheet as desired. However, you need to give the user a way of editing this layout - and that's potentially tricky.

    What we need to see is:
    1. The code so far - using code tags
    2. An explanation of what the code is supposed to do
    3. An explanation of what the code does NOT do that it should do
    4. An explanation of what the code does that it should NOT do

    If you can post that information I'm sure you will get better help.

    Cheers
    nathj

    Comment

    Working...