summaryrefslogtreecommitdiff
path: root/pod/perlfaq9.pod
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@gmail.com>2006-10-18 08:49:01 +0000
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2006-10-18 08:49:01 +0000
commite573f90328e9db84c5405db01c52908bfac9286d (patch)
tree6d7b83d2dc1fc0a317ece595a527ee541755b5ff /pod/perlfaq9.pod
parentea8d6ae1f062ab3b10e0ad05f17970dead9860ff (diff)
downloadperl-e573f90328e9db84c5405db01c52908bfac9286d.tar.gz
FAQ sync
p4raw-id: //depot/perl@29034
Diffstat (limited to 'pod/perlfaq9.pod')
-rw-r--r--pod/perlfaq9.pod32
1 files changed, 25 insertions, 7 deletions
diff --git a/pod/perlfaq9.pod b/pod/perlfaq9.pod
index 8faf2fb003..0a2ef460b6 100644
--- a/pod/perlfaq9.pod
+++ b/pod/perlfaq9.pod
@@ -1,6 +1,6 @@
=head1 NAME
-perlfaq9 - Networking ($Revision: 6309 $)
+perlfaq9 - Networking ($Revision: 7875 $)
=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<< <SELECT> >> and B<< <OPTION> >> tags. The CGI.pm
-module (available from CPAN) supports this widget, as well as many
-others, including some that it cleverly synthesizes on its own.
=head2 How do I fetch an HTML file?
@@ -649,9 +667,9 @@ http://search.cpan.org/search?query=RPC&mode=all ).
=head1 REVISION
-Revision: $Revision: 6309 $
+Revision: $Revision: 7875 $
-Date: $Date: 2006-05-18 07:44:45 +0200 (jeu, 18 mai 2006) $
+Date: $Date: 2006-10-04 22:39:26 +0200 (mer, 04 oct 2006) $
See L<perlfaq> for source control details and availability.