Forms - Password

Section 1 - Introduction
Section 2 - Basics
Section 3 - Next Level
Section 4 - Advanced
      Forms
         How forms are sent
         Input field
         Buttons
         Input types
         Fieldset
         For more help...
         You try it
      Advanced Tables
      Frames
      Style Sheets
      Image Maps
Section 5 - Publishing
Section 6 - Extras
Appendices
Passwords:
This tag is very similar to the text tag. It can be modified in exactly the same ways, such as size, value and maxlength. There is, in fact, only one difference between password and text is that when you type into a password file, you can't see what you're typing. Let's show you the code and then demonstrate.
<input type="password" name="whatever">
Here's how that works in the real world:
Code
<form method="POST" action="mailto:myaddress@mail.com">
<input type="text" name="person" size="10"> Name<br>
<input type="password" name="pswrd" size="10"> Your secret<br>
<input type="submit" value="Talk to me"> <br>
<INPUT TYPE=RESET value="Clear it">

</form>
What you see
Name
Your secret


A word of note and warning. This is NOT a secure way of sending information. It can be read easily by hackers. It's fun, but not reliable. Also, until you learn some codes and other tricks later on, you can't actually protect a file with a password this way.

With that in mind, you've finished the password section. A new adventure lies ahead.
  1. Text
  2. Checkboxes
  3. Radio Buttons
  4. Passwords
  5. Hidden
  6. File
  7. Image
  8. Textarea
  9. Select and Option
Back Home Forward