Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
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 chanting in the Monastery: (9)
As of 2014-10-31 20:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (224 votes), past polls