Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris

(zdog) RE: (2) popup_menu default problem

by zdog (Priest)
on Oct 05, 2000 at 21:30 UTC ( #35448=note: print w/replies, xml ) Need Help??

in reply to Re: popup_menu default problem
in thread popup_menu default problem

I think AgentM is right. I went to test this code:

use strict; use CGI qw(:standard); my $html .= popup_menu( -name=>'col_id', -values=>[1,2], -default=>2, -labels=>{1=>'Ali',2=>'Baba'}, ); print $html;

And here is the output I got:

I assume this is what you wanted so the error may not be in the bit of code you provided.

Zenon Zabinski | zdog |

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://35448]
[hippo]: Make it an option?
[Corion]: hippo: Yes, but I'm not sure that it's even worth the effort of implementing it at all...
[Corion]: You'll only ever need that option if you have a long-running query whose results are not cached by your DB already, and in those cases I presume that the programmer will want to maintain the temporary tables themselves - I wouldn't know when to drop ...
[Corion]: ... the temporary tables, and also don't have a good idea on how to create unique table names for them

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (9)
As of 2017-02-23 15:32 GMT
Find Nodes?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?

    Results (347 votes). Check out past polls.