It's pretty simple actually. You'll need a database to store the user info in. SQL would be the best choice, but you can also use Access. Then you'll want to create an ASP or PHP page to access that database.
Here is a page with quite a few different ways to accomplish this.