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


hey guys,
i've never done this before, and so i dont know how and where to begin... i want to have a page with 5 text input boxes
on it and a button called "Submit" and when that button is pressed it will call a function with those 5 strings for
each input box as the arguments for the function...

a code snippet or links/guidance is really appreciated.
thanks

Replies are listed 'Best First'.
Re: HTMLs with perl
by BUU (Prior) on Nov 28, 2005 at 22:14 UTC
    First you should probably use a module to access the submitted form variables. The most common is CGI.pm. Secondly you need to write code that uses the predetermined list of paramater names. Then you simply loop over them and call the appropiate function. For more detailed help I suggest: Ovid's CGI Course
Re: HTMLs with perl
by freddo411 (Chaplain) on Nov 28, 2005 at 22:18 UTC
    I'm afraid you haven't demonstrated anything in your question to show how you would solve this problem, and you've asked the monastary to either write your code, or provide a link to code. Monks reply like so: Is PM a good place to get answers for homework?

    That being said, you can start with the tutorials section here.

    -------------------------------------
    Nothing is too wonderful to be true
    -- Michael Faraday