PHP Login - User Content Restrictions

Discussion in 'PHP' started by senna, Jan 21, 2008.

  1. #1
    The attached screenshot better portrays what I want to do with this login system.

    Could someone provide me with example script as to how to complete this, in PHP?

    The links in the red box are only accessible by members.

    So...

    • User clicks on one of the links (the ones I have boxed in red in the screenshot)
    • Page is loaded asking for username and password
    • Cookie is established when the user logs in
    • So now the user can click on any link he wants for the member links and access them
    Also, should be noted: There is already a list of user names and passwords established. There is no registration form or anything like that. Security isn't an issue, either. It shouldn't really matter if someone opens up View Source and sees how to get to members-only page.

    Could someone provide me with a step by step rundown on how this would work, for example which pages I need to create and what to name them? I'm doing this for a class in highschool. Nothing too complex, I hope. All help is greatly appreciated. I guess I need an initiating page, main.php, for example. Then a script to add to each member-only page...
     

    Attached Files:

    senna, Jan 21, 2008 IP
  2. senna

    senna Peon

    Messages:
    7
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Just moving this to the top
     
    senna, Jan 21, 2008 IP
  3. senna

    senna Peon

    Messages:
    7
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    No replies?
     
    senna, Jan 22, 2008 IP