Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
using variables to get data from CGI.pm's param() functionby Avox (Sexton) |
on Apr 07, 2003 at 20:34 UTC ( [id://248730]=perlquestion: print w/replies, xml ) | Need Help?? |
Avox has asked for the wisdom of the Perl Monks concerning the following question:
I have a form that has 4 fields that are of the same format. When I submit the form, I'd like to do the same data validation on all 4. All for are named similarly (i.e. Name1, Name2, Name3, Name4). In my cgi, I'd like to loop over them using the param() call. Is it possible to do something like:
If not, any ideas? Note: JavaScript is out of the question for data validation.
Back to
Seekers of Perl Wisdom
|
|