How can I keep track of the set of text area fields already generated?
You could store the number of sets you already have on a certain page in a hidden field, and then always generate one more (n+1) ...
You only need Javascript to do this if you want to avoid the round trip to the server for every addition of a new set of text fields.
if ( $ENV{'QUERY_STRING'} =~ /^Button_name/ ) {
It's most likely easier to use a module such as CGI for extracting parameters, rather than matching stuff in QUERY_STRING yourself. As a side effect, it would also provide features such as sticky form values, which might come in handy in this case (if the user has already entered stuff in the existing fields).
In reply to Re: perl + cgi - onclick generation problem
by almut
in thread perl + cgi - onclick generation problem
by matrixmadhan
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |