HELP! * GREY=local LOCAL HTML version of Foils prepared 10 Sept 1996

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

From Introduction to HTML--ECS400 fall 96 ECS400 Senior Undergraduate Course -- Fall Semester 96. by Nancy J. McCracken * Critical Information in IMAGE

HTML for sample text field
Type your name: <input type="text" name="username" value="nobody" size=20 maxlength=40>
What shows on the browser window is
Type your name: nobody
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.
What is sent to the CGI program is the name and value pair: username=<whatever the user typed>
The password field is the same, except that whatever the user types is not shown, <input type="password" . . .>
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.



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 Wed Feb 19 1997