8 print $query->start_html("Example CGI.pm Form");
9 print "<H1> Example CGI.pm Form</H1>\n";
10 &print_prompt($query);
13 print $query->end_html;
18 print $query->start_multipart_form;
19 print "<EM>What's your name?</EM><BR>";
20 print $query->textfield('name');
21 print $query->checkbox('Not my real name');
23 print "<P><EM>Where can you find English Sparrows?</EM><BR>";
24 print $query->checkbox_group(
25 -name=>'Sparrow locations',
26 -values=>[England,France,Spain,Asia,Hoboken],
28 -defaults=>[England,Asia]);
30 print "<P><EM>How far can they fly?</EM><BR>",
33 -values=>['10 ft','1 mile','10 miles','real far'],
36 print "<P><EM>What's your favorite color?</EM> ";
37 print $query->popup_menu(-name=>'Color',
38 -values=>['black','brown','red','yellow'],
41 print $query->hidden('Reference','Monty Python and the Holy Grail');
43 print "<P><EM>What have you got there?</EM><BR>";
44 print $query->scrolling_list(
46 -values=>['A Coconut','A Grail','An Icon',
47 'A Sword','A Ticket'],
51 print "<P><EM>Any parting comments?</EM><BR>";
52 print $query->textarea(-name=>'Comments',
56 print "<P>",$query->reset;
57 print $query->submit('Action','Shout');
58 print $query->submit('Action','Scream');
59 print $query->endform;
67 print "<H2>Here are the current settings in this form</H2>";
69 foreach $key ($query->param) {
70 print "<STRONG>$key</STRONG> -> ";
71 @values = $query->param($key);
72 print join(", ",@values),"<BR>\n";
79 <ADDRESS>Lincoln D. Stein</ADDRESS><BR>
80 <A HREF="/">Home Page</A>