How do you define a password?
I am programming my own home page with HTML. I have already set up the password field:
<form name="input" maxlength=15 action="html_form_action.asp" method="get">
Password: <input type="password" name="login" />
<input type="submit" value="Submit" />
</form>
The problem is that I don't know how to define the password. As a result, any given combination of letters, numbers, and/or symbols will be accepted to access the "full version" of the page. How do I make it so that only my password will unlock the page in HTML, ASP, or javascript? Please include context and/or syntax. Also, my knowledge base of the English language was formed before texting became popular, so please use real words.
Comments
You'll need server-side scripting to handle the password validation, not just HTML. Forms solicit input that is then received by a server-side script or CGI program, which then performs whatever operations are necessary to validate the password. You can write code for this in Perl or C or (on Windows) Visual Basic (ASP files) or whatever you want, but you can't do it with HTML alone.
You write the code in ASP or PHP to access the database to find out which pages that user should have access to. You start each page by looking at the database to see if that user has access to it, and redirect to the login page if not.
You have to learn all this - no one can post code you can just copy and use on your site.