topical media & game development
lib-ch-example-form-example-3.htm / htm
<TITLE>Fill-Out Form Example #3</TITLE>
<body bgcolor="#FFFFFF" text="#000000" vlink="#FF0000">
<H1>Fill-Out Form Example #3</H1>
This is another fill-out form example, with multiple text entry
fields and checkboxes. <P>
<HR>
<FORM METHOD="POST" ACTION="lib-ch-example-form-form.cgi">
<H2>Godzilla's Pizza -- Internet Delivery Service</H2>
Type in your street address: <INPUT NAME="address"> <P>
Type in your phone number: <INPUT NAME="phone"> <P>
Which toppings would you like? <P>
<OL>
<LI> <INPUT TYPE="checkbox" NAME="topping" VALUE="pepperoni">
Pepperoni.
<LI> <INPUT TYPE="checkbox" NAME="topping" VALUE="sausage"> Sausage.
<LI> <INPUT TYPE="checkbox" NAME="topping" VALUE="anchovies">
Anchovies.
</OL>
To order your pizza, press this button: <INPUT TYPE="submit"
VALUE="Order Pizza">. <P>
</FORM>
<HR> <P>
Things you may want to note: <P>
<UL>
<LI> By default, checkboxes are off.
<LI> When the query is packaged up, off checkboxes are ignored
completely and on checkboxes are given the values specified by
the <CODE>VALUE</CODE> attribute in each <CODE>INPUT</CODE> tag.
<LI> Multiple checkboxes can have the same <CODE>NAME</CODE>, if
desired.
<LI> Checkboxes are very similar in use and interpretation on the
server side to text entry fields.
<LI> Checkboxes are "n of many": Any number of them can be on or off
at any time. (The alternative scheme, "one of many", in which
only one out of a group of several toggle buttons can be on, is
not yet supported by Mosaic.)
</UL>
<A HREF="lib-ch-example-form-example-2.htm">Back to example 2</A> or <A
HREF="lib-ch-example-form-example-4.htm">forward to example 4</A>. <P>
(C) Æliens
20/2/2008
You may not copy or print any of this material without explicit permission of the author or the publisher.
In case of other copyright issues, contact the author.