Bill Jones wrote:
> On 11/30/06, David Bear <[EMAIL PROTECTED]> wrote:
>
>> my $q = CGI->new();
>> my %params = $q->Vars;
>> foreach $f (keys (%params)) {
>>print "$f is $params{$f} ";
>> }
>
> use CGI;
>
> my $q = CGI->new();
> my %params = $q->Vars;
> foreach my $f (keys (%params)) {
>
On 11/30/06, David Bear <[EMAIL PROTECTED]> wrote:
my $q = CGI->new();
my %params = $q->Vars;
foreach $f (keys (%params)) {
print "$f is $params{$f} ";
}
use CGI;
my $q = CGI->new();
my %params = $q->Vars;
foreach my $f (keys (%params)) {
print "$f is $params{$f}\n";
}
--
WC (Bill) Jones
I would like to iterate over the list of fields posted. Then, use the field
name to access the value of that field in params.
The CGI module says I can
%params = $q->Vars;
to get the paramter list as a hash table.
but then I want to do
my $q = CGI->new();
my %params = $q->Vars;
foreach $f (key