Re: Receiving user input

2006-09-01 Thread Kjetil Kjernsmo
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

Receiving user input

2006-08-31 Thread Daniel B. Hemmerich
Anyone have a code snippet of a routine that will parse both POST and GET user input and place it into a hash? Thanks!

Re: Receiving user input

2006-08-31 Thread Jonathan Vanasco
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 ?

Re: Receiving user input

2006-08-31 Thread Michael Peters
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 =

Re: Receiving user input

2006-08-31 Thread Jay Scherrer
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

Re: Receiving user input

2006-08-31 Thread Kevin A. McGrail
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

Re: Receiving user input

2006-08-31 Thread Hendrik Van Belleghem
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,

Re: Receiving user input

2006-08-31 Thread Jonathan Vanasco
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

Re: Receiving user input

2006-08-31 Thread Kevin A. McGrail
: 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

RE: Receiving user input

2006-08-31 Thread Perrin Harkins
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

RE: Receiving user input

2006-08-31 Thread Daniel B. Hemmerich
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