DreamT has asked for the wisdom of the Perl Monks concerning the following question:
This makes it possible for me to get the formvalues via local %formvariables = Get_formvalues(); and to access them via $formvariabel{'name'} This works perfectly and has done that for several years.sub Get_formvalues() { my (%ReturnVariable); if (($ENV{'REQUEST_METHOD'} eq "GET") || ($ENV{'REQUEST_METHOD'} e +q "POST")) { my @keywords = $query->param; foreach my $name (@keywords) { my @values = $query->param($name); foreach my $value (@values) { if ($ReturnVariable{$name}) { $ReturnVariable{$name} .= "\n$value"; } else { $ReturnVariable{$name} = $value; } } } } return (%ReturnVariable); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: FastCGI form debugging
by wol (Hermit) on Apr 16, 2009 at 09:59 UTC | |
by DreamT (Pilgrim) on Apr 16, 2009 at 12:40 UTC | |
|
Re: FastCGI form debugging
by Anonymous Monk on Apr 16, 2009 at 11:50 UTC | |
by DreamT (Pilgrim) on Apr 16, 2009 at 12:42 UTC | |
by Anonymous Monk on Apr 16, 2009 at 14:02 UTC |