On Thursday 31 August 2006 17:17, Daniel B. Hemmerich wrote:
Anyone have a code snippet of a routine that will parse both POST and
GET user input and place it into a hash?
Using libapreq, how about something like
my %FORM = ();
my $req = Apache2::Request-new($r);
foreach my $name
Anyone have a code snippet of a routine that will parse
both POST and GET user input and place it into a hash?
Thanks!
On Aug 31, 2006, at 11:17 AM, Daniel B. Hemmerich wrote:
Anyone have a code snippet of a routine that will parse both POST
and GET user input and place it into a hash?
libapreq - param ?
Jonathan Vanasco wrote:
On Aug 31, 2006, at 11:17 AM, Daniel B. Hemmerich wrote:
Anyone have a code snippet of a routine that will parse both POST and
GET user input and place it into a hash?
libapreq - param ?
or just CGI. It's come standard with perl for ages now.
my $cgi =
Daniel B. Hemmerich wrote:
Anyone have a code snippet of a routine that will parse both POST and
GET user input and place it into a hash?
Thanks!
I have used cgi-lib.pl from http://cgi-lib.berkeley.edu for awhile now.
Jay Scherrer
PASS IN A FORM HASH VARIABLE, ADD OR OVERWRITE ALL THE VARIABLES TO
THAT HASH
if (uc(ref($params{'form_var'})) eq 'HASH') {
foreach $key(keys %FORM) {
$params{'form_var'}-{$key} = $FORM{$key};
}
return;
} else {
return \%FORM;
}
}
- Original Message -
From:
Daniel B.
Hemmerich
AARGH! Get out the axes and pointy sticks! cgi-lib.pl hasn't been
updated since 1998 (quick delta: 8 years). CGI.pm has stepped in as
the de-facto module for CGI stuff.. CGI.pm DOES do mod_perl as well
(although I personally have no experience with this)
Stick to CGI.pm or even better,
On Aug 31, 2006, at 11:39 AM, Michael Peters wrote:
or just CGI. It's come standard with perl for ages now.
yes, but libapreq is way faster
: Perrin Harkins [EMAIL PROTECTED]
To: Kevin A. McGrail [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]; modperl@perl.apache.org
Sent: Thursday, August 31, 2006 2:09 PM
Subject: Re: Receiving user input
On Thu, 2006-08-31 at 12:45 -0400, Kevin A. McGrail wrote:
Attached is our function that we use both
On Thu, 2006-08-31 at 18:37 -0400, Daniel B. Hemmerich wrote:
2. Have that script redirect the user via GET to another script
using a relative path to the same virtual host
Are you doing an internal redirect rather than a real redirect? CGI.pm
doesn't know how to detect that, since it's
That could be the problem! Thanks!
-Original Message-
From: Perrin Harkins [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 31, 2006 7:04 PM
To: [EMAIL PROTECTED]
Cc: 'Kevin A. McGrail'; modperl@perl.apache.org
Subject: RE: Receiving user input
On Thu, 2006-08-31 at 18:37 -0400, Daniel
11 matches
Mail list logo