in reply to checking if new CGI worked
If you want the values, you'll have to do something like this:
Note that this doesn't handle checkboxes particularly well, as you may have a query string that contains something like 'toppings=cherry&toppings=whipped%20cream&toppings=crumbled%20up%20cookie%20bits'.my $q = CGI->new(); foreach my $param ($q->param()) { my $value = $q->param($param); print "$param => $value\n"; }
If you expect multiple values back, though, you can call CGI::param() in list context, passing it the name of the checkbox group you might get multiple values from. Does that answer your question?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
RE: Re: checking if new CGI worked - SOLVED :)
by jptxs (Curate) on Sep 28, 2000 at 03:35 UTC |