Click to See Complete Forum and Search --> : how can i do this?


ronnel
12-13-2004, 12:36 AM
Create a membership section (protected by login and password) and then add these files to that page (members.php)

fambi
12-13-2004, 03:00 AM
I think you'll have to be more specific.

If you want to create a whole section which is available for members only, you'll need to :

1. Create a table that stores the details of your users, including their passwords.
2. Create an log-in / authorisation script that checks to see if the username & password match.
3. This will then create a session and then each page which is to be accessible by members only, you need some code which says "If there is no session, then divert them to the non-members area".

THis is the basic theory.

Unfortunately, i cannot tell you how that is done, although you can find lots of premade scripts available.

Try searching for php login scripts.

Sorry can't be of more help.