Here's what you would have to do:
1) Create a form for users to register an account - this is simple HTML forms. This can be fields like:
username, password, email, etc....
2) Pass this data into a database with the corresponding fields.
That should be it. 🙂 Do you need more detailed information?