SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Zealot kevinritt's Avatar
    Join Date
    Nov 2002
    Location
    Lynn, Massachusetts-United States
    Posts
    138
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Login takes specific user to a certain page

    Hello,
    I have a database setup with various user accounts. There is a main login page for all users. What I would like to do is redirect a user to a certain page based on who they are.
    For example: User "Customer" logs in and is redirected to the "Customer" section where orders, etc. can be viewed.
    Then User "Merchant" logs in and is redirected to his or her section where items for sale, sold items, etc can be viewed.
    Each User will have a page dynamically generated for that users specific data.
    My question is how do I query the database. I have a query to match usename and password upon login but I'm not sure where to go from here.
    Thanks for any help.

  2. #2
    reads the ********* Crier silver trophybronze trophy longneck's Avatar
    Join Date
    Feb 2004
    Location
    Tampa, FL (US)
    Posts
    9,854
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    you should ask this question in the forum for your host language. php, coldfusion, etc. HTML redirects are handled by your host language, not the DB.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •