Syntactic Confectionery Delight | |
PerlMonks |
How to access an unknown number of CGI variables in a CGI scriptby prautt (Initiate) |
on Jan 08, 2013 at 08:37 UTC ( [id://1012191]=perlquestion: print w/replies, xml ) | Need Help?? |
prautt has asked for the wisdom of the Perl Monks concerning the following question:
Hello,
I have an HTML form in which a user can click on "Add a row" link to have another row (and another variable) added to the form using JavaScript. I name each new variable "student[]" in the form. The question is how to access these variables in a Perl CGI script? Should I be naming them differently in the form to access them as, for example, $FORM{'student1'}, $FORM['student2'}, etc.? Or perhaps there's a better way to name the variable in the form to begin with? Thanks!
Back to
Seekers of Perl Wisdom
|
|