in reply to Re^4: Perl CGI checkbox_group submit error
in thread Perl CGI checkbox_group submit error
poj#!/usr/local/bin/perl -w use CGI qw/:standard/; print header, start_html('Simple Script'), h1('Simple Script'), start_form, "What's your name? ",textfield('name'),p, "What's the combination?", checkbox_group(-name=>'words', -values=>['eenie','meenie','minie','moe'], -defaults=>['eenie','moe']),p, "What's your favorite color?", popup_menu(-name=>'color', -values=>['red','green','blue','chartreuse']),p, submit, end_form, hr,"\n"; if (param) { print "Your name is ",em(param('name')),p, "The keywords are: ",em(join(", ",param('words'))),p, "Your favorite color is ",em(param('color')),".\n"; } print end_html;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: Perl CGI checkbox_group submit error
by begood321 (Novice) on Jul 16, 2013 at 12:59 UTC | |
by poj (Abbot) on Jul 16, 2013 at 13:27 UTC |