Previous Slide


Checkboxes

Next Slide

AN INPUT TAG WITH "CHECKBOX" INCLUDED AS ITS TYPE ATTRIBUTE PRODUCES A CHECKBOX.

  • THE INFORMATION SENT TO THE SERVER ASSOCIATES SELECTED CHECKBOX NAMES WITH "ON".
    <FORM action="http://www.cs.williams.edu/cgi-bin/query">
    <TABLE BORDER>
    <TR> <TD >
    <INPUT TYPE="CHECKBOX" NAME="SAUSAGE" > Sausage
       . . . 
    </TABLE></FORM>
    

Sausage Onion
Bacon Peppers
Anchoives Olives



The Web:
Technologies and
Techniques


Links to other course pages:


Williams College
Department of Computer Science
This page is part of a section of lecture slides related to " HTML Forms " within the topic "CGI and HTML Forms". Other slides within this section and other sections of slides for the topic "CGI and HTML Forms" can be accessed using the links below.
  • Common Gateway Interface
  • CGI == Common Gateway Interface
  • HTML Forms
  • Forms
  • Forms (cont.)
  • FORM ACTION ATTRIBUTE
  • Form Input Elements
  • The Submit Button
  • Text Input Fields
  • Name/Value Pairs
  • Checkboxes
  • Radio Buttons
  • Other "INPUT" Elements
  • The "TEXTAREA" Tag
  • Selection Lists
  • Selection Lists (cont.)