Re: $r->param - where did it go?

Jonathan Vanasco <[email protected]>
Newsgroups gmane.comp.apache.apreq
Message-ID <[email protected]>
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
| - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  
- - - - - - - - - - - - - - - -
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.