Java Mailing List Archive

http://www.apache-httpd.com/

Home » modperl.perl »

Post data with Apache2::Request

kropotkin

2008-05-24

Replies: Find Java Web Hosting

Author LoginPost Reply

Hi

I am trying to obtain POST data from a form.

I have these lines:

my $req = Apache2::Request->new($r);
my $email = $req->body('email');

My form contains a field called 'email'.

However no data.

The line: print $req->body_status(); outputs 'SUCCESS' seeming to indicate
a) that $req as an instance of Apache2::Request and b) that the object
thinks it has got some data?

I have tired sending the data by GET and using : my $email =
$req->param('email') but there was no data there either.

I don't want to use CGI.pm if possible

with thanks

Kropotkin
--
Sent from the mod_perl - General mailing list archive at Nabble.com.

©2008 apache-httpd.com - Jax Systems, LLC, U.S.A.