Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
#!/usr/local/bin/perl -w #use strict, warnings, web cgi, and browser error modules use strict; use CGI qw(:standard); use CGI::Carp qw(fatalsToBrowser); my $fetch_data = ''; my ($field, $value); foreach $field (param) { #added this loop to cover multivalued form fields to #process each value individually if needed foreach $value (param($field)) { $fetch_data .= "$field\:\t$value\n\n"; } } print header, <<"EOF"; <HTML> <BODY> $fetch_data </HTML> EOF
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Displaying values after form is submitted
by sschneid (Deacon) on May 12, 2004 at 13:13 UTC | |
|
Re: Displaying values after form is submitted
by matija (Priest) on May 12, 2004 at 13:31 UTC | |
|
Re: Displaying values after form is submitted
by Thelonius (Priest) on May 12, 2004 at 13:52 UTC | |
by Anonymous Monk on May 12, 2004 at 14:35 UTC | |
|
Re: Displaying values after form is submitted
by eXile (Priest) on May 12, 2004 at 15:35 UTC |