httpd-apreq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jonathan Vanasco <apreq-dev-l...@2xlp.com>
Subject Re: $r->param - where did it go?
Date Thu, 26 Oct 2006 21:49:04 GMT

On Oct 26, 2006, at 4:50 PM, Patrick Galbraith wrote:

> Hi all,
>
> in  mod_perl 1.0, there was $r->param(), for getting the key/values  
> of a posted form - what happened to this lovely method?
>
> ApacheRequestRec doesn't have a param method that I can see. There  
> has to be some nice way to get this info.

its kind of weird how you asked the question though-- right mailing  
list, wrong application.

$r is Apache2::RequestRec , part of mod_perl

you want an Apache2::Request object, part of libapreq

sub handler {
	my 	$r= shift;
	my 	$apr= Apache2::Request->new( $r , DISABLE_UPLOADS=> 1 );
	my 	$fieldvalue= $apr->param('field');
}

$apr->param does get/post.  there are sep. functions for get & post  
if you want one of them specifically too.

// Jonathan Vanasco

| - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  
- - - - - - - - - - - - - - - -
| FindMeOn.com - The cure for Multiple Web Personality Disorder
| Web Identity Management and 3D Social Networking
| - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  
- - - - - - - - - - - - - - - -
| RoadSound.com - Tools For Bands, Stuff For Fans
| Collaborative Online Management And Syndication Tools
| - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  
- - - - - - - - - - - - - - - -



Mime
View raw message