Results 1 to 4 of 4
  1. #1
    Join Date
    Oct 2002
    Location
    Manchester, UK
    Posts
    1,164

    PHP / MySQL Login

    Hello, Im trying to make a login page for people to login and ger redirected to a directory that only people who are logged in can see. I would like to use a mysql database to hold user accounts and passoword information. how should I go about setting up the database and then coding the php login panel? any help is great! thanks!
    Rob Greenwood
    RedHat Certified, Unix Consultant
    http://www.linkedin.com/in/bilco105

  2. #2
    You might want to check out PEAR::Auth. The sample code given in the tutorial should be sufficient for your purposes.

  3. #3
    Join Date
    Jul 2005
    Location
    Germany
    Posts
    2
    I wrote something like this two weeks ago. Users have to login with username and password, the data is stored in a mySQL database.
    If the login works, they will get redirected to a page/directory, otherwise they will get redirected to the login page.

    I used sessions for this.

  4. #4
    Join Date
    Mar 2004
    Location
    USA
    Posts
    4,342
    Use this as a starting point:

    http://www.free-php-scripts.net/down...cript.php?id=8

    Peace,
    Testing 1.. Testing 1..2.. Testing 1..2..3...

Posting Permissions

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