Forms provide a method for a Web viewer to send information back to the server of the HTML document.
<form action="URL"> . . . </form>
Attributes of this tag are discussed in CGI programming.
Within one form many pieces of information can be collected and returned to the server.
  • Text entry fields, one line
  • Password fields
  • Scrollable text fields
  • Checkboxes (off/on toggle)
  • Radio buttons
  • Pop-up menus
  • Push buttons - submit and reset
Example begin form tag:
<form method=post action="http://newton.npac.syr.edu/ ???/post-query">
The form handler "post-query" is a standard program that accepts all the data and prints it out.

See also color IMAGE Foil 22 Forms

From Preparing Web Pages - HTML Presentation: Preparing Web Pages with HTML -- Fall Semester 96. by Nancy McCracken-Foils prepared December 5 1996


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 Fri Dec 6 1996