Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Populating a CGI scrolling list from a database

by Anonyrnous Monk (Hermit)
on Feb 15, 2011 at 16:14 UTC ( #888291=note: print w/ replies, xml ) Need Help??


in reply to Populating a CGI scrolling list from a database

As per the docs, the values argument should be an array reference, i.e. in your case

... print scrolling_list(-name => 'cboProj', -values => $doclist);

Update: though, if @$doclist isn't a flat list of names (as moritz points out), this won't work either...  My apologies, spoke too soon — just ignore my post.


Comment on Re: Populating a CGI scrolling list from a database
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (7)
As of 2015-07-05 04:29 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 (60 votes), past polls