in reply to Easy CGI Question
For the most part, either POST or GET is fine (just don't mix the two unless you know what you're doing).
To get all of the params, you can do this:
use CGI ':cgi-lib'; $params = Vars; $address = $params->{address}; @foo = split("\0",$params->{'foo'});
Of course, that uses the old-style "split on a null byte" to fake a data structure for multiple param values. As long as each param has only one instance, though, you can ignore this.
Another relatively simple method, if you don't mind all of your param values as array references:
use CGI qw':standard'; my %params = map { $_ => [param($_)] } param;
Cheers,
Ovid
New address of my CGI Course.
|
|---|