Basic HTML version of Foils prepared 11 May 1997

Foil 23 Content Fields of a Form: Text and Password Fields

From Introduction to HTML--ECS400 fall 97 ECS400 Senior Undergraduate Course -- Spring Semester 97. by Nancy J. McCracken *

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.

in Table To:


© Northeast Parallel Architectures Center, Syracuse University, npac@npac.syr.edu

If you have any comments about this server, send e-mail to webmaster@npac.syr.edu.

Page produced by wwwfoil on Tue Aug 26 1997