Re: clearing a parameter using Apache::Request

[prev] [thread] [next] [Date index for 2005/01/07]

From: Tom Schindl
Subject: Re: clearing a parameter using Apache::Request
Date: 12:25 on 07 Jan 2005
You don't state which Version of mp you are using but
Yes you can in both generations, by using the 
Apache::Table/APR::Table-Object.

I have not tested it but as far as I understand the docs
this could should work.

----------------8<----------------
use mod_perl;

my $apr = Apache::Request->new($r);
my $table;

## check the mp-version
if( $mod_perl::VERSION >= 1.99 ) {
     $table = $req->param; ## mp2
} else {
     $table = $apr->parms; ## mp1
}

delete $table->{submitting}
----------------8<----------------

Tom

greger@xxxxxxxxxxxxxxxxx.xxx wrote:
> Hi all,
> I'd also be interested to know if it is possible to get the params, alter
> them, from mod_perl without using the request object method...
> anyone?
> /Greger
> --
> www.gh-webinteractive.com

clearing a parameter using Apache::Request
Sean Davis 12:42 on 06 Jan 2005

Re: clearing a parameter using Apache::Request
Tom Schindl 12:25 on 07 Jan 2005

Generated at 12:15 on 16 Jan 2005 by mariachi v0.52