1. No Profile Picture
    Devshed Newbie (0 - 499 posts)
    I have protected the member's only area on my site with an .htaccess file. What I would like to know is how I can make it so people can enter their login name and password on the page, hit "submit" and be taken to the member's area. Any php code out there for this would be nice, too.
  2. #2
  3. No Profile Picture
    Devshed Newbie (0 - 499 posts)
    Put the php authenticating code in the top of the members area front page, then make it the action= in your auth form. If the pass info is valid print the actual page, otherwise print an error.

    You could also use the webservers auth faculties instead of php. I use mod_auth_mysql to authenticate against a MySQL database and a php back end to manage users. They you can just link to the members page, get a login popup, authenticate and the page loads if the user info is correct.

Similar Threads

  1. Find out your web page's path
    By Dr. Possible in forum ASP Programming
    Replies: 25
    Last Post: July 27th, 2004, 08:14 AM
  2. cant work out how to validate form server side properly....
    By ralphuk100 in forum PHP Development
    Replies: 21
    Last Post: February 6th, 2004, 02:35 PM
  3. server side validation - back button loses values
    By leeolive in forum ASP Programming
    Replies: 2
    Last Post: November 2nd, 2003, 08:06 PM
  4. API: how to capture a page from a third party server
    By sammasati in forum PHP Development
    Replies: 2
    Last Post: March 3rd, 2002, 10:53 PM
  5. weblogic apache bridge config
    By kalpana in forum Apache Development
    Replies: 0
    Last Post: December 7th, 2000, 12:58 PM

IMN logo majestic logo threadwatch logo seochat tools logo