Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
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 pondering the Monastery: (6)
As of 2015-07-03 18:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (55 votes), past polls