Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Popo-up menu filled with array problem

by sacked (Hermit)
on May 18, 2004 at 19:34 UTC ( [id://354409]=note: print w/replies, xml ) Need Help??


in reply to Popo-up menu filled with array problem

From the CGI pod:
 popup_menu() creates a menu.

       1.  The required first argument is the menu's name
           (-name).

       2.  The required second argument (-values) is an array
           reference containing the list of menu items in the
           menu.  You can pass the method an anonymous array, as
           shown in the example, or a reference to a named array,
           such as "\@foo".
You need to pass a reference to a list to the -values key of a popup_menu:
popup_menu( -name => 'select', -values => \@files )
Please read the CGI documentation carefully. It is well-written and has many examples.

--sacked

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (4)
As of 2024-04-24 11:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found