in reply to Getting hash of CGI variables
...where $q is your CGI object. In the event that you want to put all the form parameters into a hash using the Vars method, you may access the value as follows:my $value = $q->param('address');
In both of these examples, the only significance of the word `address' is that it was the name of the parameter passed by the referring form (or otherwise for the purpose of demonstration).my $v = $q->Vars; my $value = $v->{'address'};
...where `multi_values' is, perhaps, the name of a bunch of checkboxes in the referring form.my @array_of_values = $q->param('multi_values');
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Getting hash of CGI variables
by Lori713 (Pilgrim) on Jan 22, 2004 at 20:52 UTC | |
by revdiablo (Prior) on Jan 22, 2004 at 22:49 UTC |