in reply to Defining Lable for a field
I think you want
use CGI; my $q = CGI->new(); my %labels = ('black' => 'Black', 'brown' => 'Brown', 'red' => 'Red', 'yellow' => 'Yellow'); print $q->popup_menu( -name => 'Summary', -values => ['black','brown','red','yellow'], -default => 'red', -labels => \%labels ); # alternatively, without named params print $q->popup_menu( 'Summary', ['black','brown','red','yellow'], 'red', \%labels );
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Defining Lable for a field
by mld (Acolyte) on Apr 21, 2009 at 13:57 UTC | |
by almut (Canon) on Apr 21, 2009 at 14:21 UTC | |
by Anonymous Monk on Apr 21, 2009 at 14:10 UTC |