Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

Hello. My question to all of you is : How do I pass all the names and values of an HTML <select> menu to a subroutine? I display 5 different select menus, each with different names and a value of yes or no. I would like to collect all names and values selected and pass them to a subroutine that will print out the name and value for each menu.

Replies are listed 'Best First'.
Re: HTML popup menus
by Jouke (Curate) on Sep 23, 2000 at 12:09 UTC
    Look into CGI.pm. It handles all input from the user. It's distributed with Perl itself

    Jouke Visser, Perl 'Adept'
      Yes, CGI.pm would be the best solution. I don't post the entire code for doing this here because it's just too easy.
Re: HTML popup menus
by AgentM (Curate) on Sep 24, 2000 at 08:35 UTC
    You don't need to "pass" anything. The $query->param() is global in your Perl script (if you use CGI;)