hi,
First you need to choice the scripit language that you need inorder to develop your webpage. It is like doing a program. If you are fammilier with programming. There are 2 type of scripit languages, a server side and a client side languages.
If you wish to do your website on java scripit which is a client side language. I will look at my web page.That I develop it 3 and a half years ago. Then I will give you all the clue how to connect to database and how to do the regesteration form and all the password things.
If you wonder the diffrence bettwen a server and screpit side language look at the link
http://www.metalusions.com/backstage/articles/12/.(I just find it at google).