Are you also processing the posted data at some earlier request stage? It
doesn't sound like you would be but I thought I would ask.
Richard
----- Original Message -----
From: Mike Melillo
To: [EMAIL PROTECTED]
Sent: Tuesday, May 14, 2002 5:22 PM
Subject: $r->args vs $r->content
Ok, I've switched to A::Request, but it still seems my parameters table is
empty. I'll paste in the form data, as well as some code snippets to see if
that helps find the bug.
<form method="post" ENCTYPE="multipart/form-data" action="/join"> <input
type=hidden name=action value=submit>
username<br>
<input type=text size=30 maxlength=255 name=username value=[% username %]>
<p>
password<br>
<input type=password size=30 maxlength=20 name=password value=[% password%]>
<input type=submit name="submit" value="ADD PROFILE">
</form>
**End HTML Template**
** Join.pm **
sub submit {
my $DEBUG = 1;
my ($r) = shift;
my $apr = Apache::Request->new($r);
my $status = $apr->parse;
my @param = $apr->param;
$DEBUG && print STDERR Dumper($apr->parms)
$DEBUG && print STDERR Dumper(@param);
...
}
The first Data::Dumper print statement sends this to the errlog ->
$VAR1 = bless( {}, 'Apache::Table' );
The second print statement prints nothing.
I looked at perldoc Apache::Request, but didn't see anything wrong...
Help?
Mike
-----Original Message-----
From: Issac Goldstand [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 14, 2002 4:39 AM
To: Mike Melillo
Cc: [EMAIL PROTECTED]
Subject: Re: $r->args vs $r->content
Quoting Mike Melillo <[EMAIL PROTECTED]>:
>
> Hi,
>
> One of the fields is an image file that will be uploaded so I need to
> use POST requests. Is this a job for Apache::Request? The eagle book
> doesn't cover it much because it was "experimental" at the time of
> publishing.
>
There's a version 1.0 out by now. That means stable as it's ever gonna get
:-) I use it all the time, go for it!
Issac
Internet is a wonderful mechanism for making a fool of
yourself in front of a very large audience.
--Anonymous
Moving the mouse won\'t get you into trouble... Clicking it might.
--Anonymous
PGP Key 0xE0FA561B - Fingerprint:
7E18 C018 D623 A57B 7F37 D902 8C84 7675 E0FA 561B