newatperl has asked for the wisdom of the Perl Monks concerning the following question:
I'm trying to put in:print "<tr><td><B>Category:</B></td><td>"; print $query->popup_menu( -name=>'pubcategory', -values=>['a', 'b', 'c'], -default=>'None'); print "<td></tr>\n";
(@publication_categories is simply generated from http://devo.wi.mit.edu/~dzhao/cgi-bin/pub_cat.txt) However, no matter what I do, it only lists the first value of the array. Should I hack the array into a giant string that looks like ['a','b','c'...]? That seems like an ugly solution. Can anyone help? Thanksprint "<tr><td><B>Category:</B></td><td>"; print $query->popup_menu( -name=>'pubcategory', -values=>@publication_categories, -default=>'None'); print "<td></tr>\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: using an array to propagate a CGI menu
by bjelli (Pilgrim) on May 14, 2001 at 23:55 UTC | |
|
Re: using an array to propagate a CGI menu
by boo_radley (Parson) on May 14, 2001 at 22:59 UTC | |
|
Re: using an array to propagate a CGI menu
by Hero Zzyzzx (Curate) on May 14, 2001 at 23:01 UTC | |
by newatperl (Acolyte) on May 14, 2001 at 23:19 UTC |