Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

(zdog) RE: (2) CGI.pm 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: CGI.pm popup_menu default problem
in thread CGI.pm 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:

<SELECT NAME="col_id"> <OPTION VALUE="1">Ali <OPTION SELECTED VALUE="2">Baba </SELECT>
I assume this is what you wanted so the error may not be in the bit of code you provided.

Zenon Zabinski | zdog | zdog7@hotmail.com


Comment on (zdog) RE: (2) CGI.pm popup_menu default problem
Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://35448]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (14)
As of 2014-08-29 15:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (281 votes), past polls