X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=pod%2Fperlfaq9.pod;h=609f8984851bdb5c16f88091d9687ce846b83593;hb=b9ad30b40cf004f5ea6fd7a945a950cf873aed7b;hp=336d22d5e9b22ac9a3dbcd8ac582e6f234d47d09;hpb=b68463f7111b76264d78b38de603c7c4a3c5e635;p=p5sagit%2Fp5-mst-13.2.git diff --git a/pod/perlfaq9.pod b/pod/perlfaq9.pod index 336d22d..609f898 100644 --- a/pod/perlfaq9.pod +++ b/pod/perlfaq9.pod @@ -1,6 +1,6 @@ =head1 NAME -perlfaq9 - Networking ($Revision: 1.23 $, $Date: 2005/08/10 15:54:54 $) +perlfaq9 - Networking ($Revision: 8539 $) =head1 DESCRIPTION @@ -186,11 +186,29 @@ method. See the section in the CGI.pm documentation on file uploads for code examples and details. -=head2 How do I make a pop-up menu in HTML? +=head2 How do I make an HTML pop-up menu with Perl? + +(contributed by brian d foy) + +The CGI.pm module (which comes with Perl) has functions to create +the HTML form widgets. See the CGI.pm documentation for more +examples. + + use CGI qw/:standard/; + print header, + start_html('Favorite Animals'), + + start_form, + "What's your favorite animal? ", + popup_menu( + -name => 'animal', + -values => [ qw( Llama Alpaca Camel Ram ) ] + ), + submit, + + end_form, + end_html; -Use the B<<