slackah has asked for the wisdom of the Perl Monks concerning the following question:
I don't want to have to type in the all the values manually though. Could someone tell me how to pass the hash keys for the values? The same as is done for the -labels? \%labels for the values field passes the hash values.%labels = ('eenie'=>'your first choice', 'meenie'=>'your second choice', 'minie'=>'your third choice'); print $query->popup_menu(-name=>'menu_name', -values=>['eenie','meenie','minie'], -default=>'meenie', -labels=>\%labels);
edited: Fri Mar 14 23:31:30 2003 by jeffa - code tags
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: cgi.pm: popup_menu
by crenz (Priest) on Mar 14, 2003 at 19:24 UTC | |
by arturo (Vicar) on Mar 14, 2003 at 21:31 UTC | |
by slackah (Initiate) on Mar 15, 2003 at 03:03 UTC | |
by crenz (Priest) on Mar 15, 2003 at 11:18 UTC |