1 | HTML for sample text field |
2 | Type your name: <input type="text" name="username" value="nobody" size=20 maxlength=40> |
3 | What shows on the browser window is |
4 | Type your name: nobody |
5 | The typing box is of length 20 characters (default=20) and will scroll up to a max of 40 characters (default=unlimited). The value, size and maxlength fields are optional - "nobody" is the initial value in this case. |
6 | What is sent to the CGI program is the name and value pair: username=<whatever the user typed> |
7 | The password field is the same, except that whatever the user types is not shown, <input type="password" . . .> |
8 | The hidden field is the same, except that nothing shows on the browser, <input type="hidden" . . .>. This is a technique for one CGI program to pass data to another. |