Need Help With Password Protection Script

Discussion in 'PHP' started by Cozmic, Sep 10, 2010.

  1. #1
    Hey!

    A software which I am working on is going to have a password protection function. The software uses these variables to access pages:

    $_GET['app']
    $_GET['m']
    $_GET['a']
    $_GET['id']

    I want to make it so that the administrator can enter values for each of these variables and if what they entered matches the current variables (if they enter nothing for a variable, it is not looked at), then it forces the viewer to enter a password.

    How can I check to see if this condition is met? I store them in a database that look like this:

    - key
    - password
    - app
    - m
    - a
    - id
     
    Cozmic, Sep 10, 2010 IP
  2. HuggyEssex

    HuggyEssex Member

    Messages:
    297
    Likes Received:
    4
    Best Answers:
    2
    Trophy Points:
    45
    #2
    Store everything from the database into a array, then you gonna need to use a session which will save the information if they have entered it. This is something your going to have to think about for a while. Add me to one of the IM clients in my sig if you need any help.

    Thanks, Glen
     
    HuggyEssex, Sep 11, 2010 IP