Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
However, is there anyway I can access the values differently? For example, I tried using this syntax but it produced an error:my @fields = $INPUT->param('titles'); foreach my $f (@fields) { #do something with $f... }
I also tried this:my $title = $INPUT->param("titles")[5];
my $title = @{$INPUT->param("titles")}[5];
my @fields = $INPUT->param('titles'); my $title = $fields[5];
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: CGI.pm - multiple values for same field name
by ikegami (Patriarch) on May 25, 2007 at 03:43 UTC | |
by shmem (Chancellor) on May 25, 2007 at 08:58 UTC | |
by ikegami (Patriarch) on May 25, 2007 at 15:09 UTC | |
by shmem (Chancellor) on May 25, 2007 at 15:30 UTC | |
|
Re: CGI.pm - multiple values for same field name
by shmem (Chancellor) on May 25, 2007 at 05:59 UTC | |
by naikonta (Curate) on May 25, 2007 at 08:39 UTC | |
|
Re: CGI.pm - multiple values for same field name
by Anonymous Monk on May 25, 2007 at 03:59 UTC | |
by ikegami (Patriarch) on May 25, 2007 at 06:17 UTC | |
by naikonta (Curate) on May 25, 2007 at 07:30 UTC |