in reply to Organizing Form Input

Here's a concept that might work.
Use javascript to add fields and hold the answers in a javascript array. You can dynamically add and make the input fields visible with javascript and CSS.
Then for submission, just concatenate the js array into a big string variable, submit the array as one CGI parameter, and let the CGI code take it back apart into an array.
Not sure how big one parameter can be though. Maybe not infinite :) You really should set some limit anyway for one submission.

non-Perl: Andy Ford

Replies are listed 'Best First'.
Re^2: Organizing Form Input
by dsheroh (Monsignor) on Feb 23, 2007 at 16:40 UTC
    For something like that, you'd pretty much have to submit it as a POST, but I assume the OP is already using POST rather than GET. You can then set $CGI::POST_MAX to make the size limit more-or-less whatever you want. AFAIK, CGI only limits the total size of the POSTed request and you can split that up however you want across as many or few parameters as you like.