Discipulus has asked for the wisdom of the Perl Monks concerning the following question:
use CGI qw /:standard -nph/; $|++; $CGI::POST_MAX=100; $CGI::DISABLE_UPLOAD=1; my $q=new CGI; print header(); print start_html(-title=>'*check,-bgcolor=>"#000099",-text=>"#FF9933", +-link=>"#FF3300",-alink=>"#FF3300",-vlink=>"#FF3300"); my %labels=('200.160.128.41'=>'HOST01', '200.160.128.42'=>'HOST02', '200.160.128.52'=>'HOST03', '200.160.136.130'=>'HOST04', '200.160.136.131'=>'HOST05', '200.160.136.132'=>'HOST06', '200.160.136.133'=>'HOST07', '200.160.136.136'=>'HOST08', '200.160.136.139'=>'HOST09', '200.160.136.140'=>'HOST10', '200.160.128.31'=>'HOST11', '200.160.128.88'=>'HOST12', '200.160.136.135'=>'HOST-GEST', '200.160.128.62'=>'HOSTSsql04', '200.160.128.43'=>'HOSTsql03', ) ; print $q->start_form(-method=>'POST',-action=>url(-relative=>1),-name= +>'form1'); print $q->checkbox_group(-name=>'quale_server', -values=>['200.160.128.41', '200.160.128.42', '200.160.128.52', '200.160.136.130', '200.160.136.131', '200.160.136.132', '200.160.136.133', '200.160.136.136', '200.160.136.139', '200.160.136.140', '200.160.128.31', '200.160.128.88', '200.160.136.135', '200.160.128.62', '200.160.128.43'], #-default=>[keys %labels], -linebreak=>'true', #-size=>15, -multiple=>'true', -labels=>\%labels, #-columns=>2 ); print $q->submit(-value=>'search'),end_form(); print $q->br; if (defined $q->param()){print "The keywords are: ",em(join(", ",para +m('quale_server')))} ##or @server=param('quale_server'); ########################################################## print $q->end_html();
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: checkbox_group CGI.pm madness
by ColtsFoot (Chaplain) on May 13, 2005 at 11:32 UTC | |
|
Re: checkbox_group CGI.pm madness
by eieio (Pilgrim) on May 13, 2005 at 12:50 UTC |