I'm glad there are people here to help and thanks to everyone who has helped so far.
I've got a website that has both a guest (free) area and a members area. And I'm trying to restrict access to the members area to those who have paid their fee.
I'm about done with the first part which is creating the registration form (Choose a user name, choose a password, reenter password) and then store the chosen username and password in a database.
And now for the next part. The log in form. That's the one where the user clicks on a button and a form is presented that says something like "Enter username and password." Then the computer checks the database for the username the user has keyed in. If it's there, then then the computer continues on and compares the password associated with the username to the password that has been keyed in. If the passwords match then the user is granted access. If not then access is denied. (Or at least I think that's the way it works.)
If this were in the real world I'd stamp their hand and then inspect their hand at the gate as they went in and out. But since this is cyberspace I'll need something different.
In theory, how do I let users into the members area (or not) based on the usernames and passwords in the database?
Or in other words, in theory, how do I password protect the members area after I have the chosen usernames and passwords in the database.
Stated another way, how do I grant access (or not) based on the usernames and passwords in the database.
(Pardon me. It's 2:00 a.m. here and I'm starting to babble. Smile)
Right now I'm thinking something involving the user's IP address. But that may be off base.
When I'm done with this I'm going to take a full pseudo vacation. That means putting a rope barrier around the couch and television and watching the Travel Channel for at least five days and four nights.