Yes, the duplicate naming of fields will break your code as you're grabbing the params in a scalar context which will only return the first value. Here's a quick script that will show everything that is sent via your form (this is untested):
#!/usr/bin/perl -wT use strict; use CGI qw/:standard/; use Data::Dumper; my %formdata = map { $_, @{[param($_)]} > 1 ? [param($_)] : param($_) +} param(); my $dump = Dumper \%formdata; print header, start_html, pre( $dump ), end_html;
By the way, I'm glad to see that you've deleted dangerous environment variables and done other things to prevent hacking. Good job!
Cheers,
Ovid
Join the Perlmonks Setiathome Group or just click on the the link and check out our stats.
In reply to (Ovid) Re(3): Does CGI.pm have a limit on information passed?
by Ovid
in thread Does CGI.pm have a limit on information passed?
by c
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |