It is not something that you just explain in 10 lines, however read about the Session class, which will point you in one direction.
try this search
BTW... the title of the tread said
password in HTML... You are right that one could use HTML forms to gather the information however the Session class is in ASP(X) and thus server side.
Jacob.