Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Answer: How can I allow the user to enter multiple rows of data?

by merlyn (Sage)
on Aug 07, 2000 at 05:00 UTC ( #26476=categorized answer: print w/replies, xml ) Need Help??

Q&A > CGI programming > How can I allow the user to enter multiple rows of data? - Answer contributed by merlyn

If the param names were sequential, they'd be easier to loop. :)
use CGI ":all"; # of course # ... # generate HTML: print p("Field $_:"), textfield("input$_"), br for 1..10; # ... # get params: $data[$_] = param("input$_") for 1..10;

Log In?
Username:
Password:

What's my password?
Create A New User
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (4)
As of 2020-09-24 05:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    If at first I donít succeed, I Ö










    Results (132 votes). Check out past polls.

    Notices?