Currently I'm using:
use Apache::Request (); my $readquery = Apache->request; $readquery = Apache::Request->new($readquery); foreach $temppram (sort $readquery->param) { $in{$temppram} = join('\0', $readquery->param($temppram)); }
But it seems I'm missing something that proably make this far easier.
David
From: "Kreimendahl, Chad J" <[EMAIL PROTECTED]> To: "David Hofmann" <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]> Subject: RE: Apache::Request Multivalues Date: Fri, 9 Jul 2004 10:05:22 -0500
Should return as an array if you ask for one.... or at least it does for me.
my $apr = Apache::Request->new($r); my @array = $apr->param($key);
-----Original Message----- From: David Hofmann [mailto:[EMAIL PROTECTED] Sent: Friday, July 09, 2004 9:49 AM To: [EMAIL PROTECTED] Subject: Apache::Request Multivalues
In CGI.pm you can use:
%params = $q->Vars;
To get the incoming form data and key words.
Multivalued parameters are returned as a packed string, separated by the
"\0" (null) character.
How do you get multivalue data in Apache::Request?
_________________________________________________________________ Express yourself instantly with MSN Messenger! Download today - it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
-- Report problems: http://perl.apache.org/bugs/ Mail list info: http://perl.apache.org/maillist/modperl.html List etiquette: http://perl.apache.org/maillist/email-etiquette.html
_________________________________________________________________
Get fast, reliable Internet access with MSN 9 Dial-up – now 2 months FREE! http://join.msn.click-url.com/go/onm00200361ave/direct/01/
-- Report problems: http://perl.apache.org/bugs/ Mail list info: http://perl.apache.org/maillist/modperl.html List etiquette: http://perl.apache.org/maillist/email-etiquette.html