in reply to Displaying values after form is submitted
#!/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 .= "<tr><td>$field:</td><td>$value</td></tr>\n"; } } print header, <<"EOF"; <HTML> <BODY> <table> $fetch_data </table> </HTML> EOF
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Displaying values after form is submitted
by Anonymous Monk on May 12, 2004 at 14:35 UTC |