perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Hofmann" <mor4...@hotmail.com>
Subject RE: Apache::Request Multivalues
Date Fri, 09 Jul 2004 16:19:33 GMT
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" <Chad.Kreimendahl@umb.com>
>To: "David Hofmann" <mor4321@hotmail.com>, <modperl@perl.apache.org>
>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:mor4321@hotmail.com]
>Sent: Friday, July 09, 2004 9:49 AM
>To: modperl@perl.apache.org
>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


Mime
View raw message