in reply to cgi_handlers.pl
With CGI.pm, you can port your old CGI script and create a hash with the HTML form variables with a simple loop:
use CGI; $query = new CGI; foreach ($query->param()) { $fields{$_} = $query->param($_); } # now you can access the HTML form field 'name' like so: print "Hello, " . $fields{'name'} . "!\n"; # or you can use the CGI.pm methodology (which would mean # you'd have to port all of the instances of your HTML form # variables: print "Hello, " . $query->param('name') . "!\n";
HTH,
Jason
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: cgi_handlers.pl
by Amoe (Friar) on Nov 06, 2001 at 00:10 UTC |