in reply to Apache::Request->param() failing on POSTs

What happens if you just pull the args() off of the Apache object?
my $formdata = $pass->{'r'}->content; warn $formdata->{'year'}." ".$formdata->{'foundation'};

Don
WHITEPAGES.COM | INC

Edit by castaway: Closed small tag in signature

Replies are listed 'Best First'.
Re^2: Apache::Request->param() failing on POSTs
by merlyn (Sage) on Jun 15, 2005 at 23:09 UTC
Re^2: Apache::Request->param() failing on POSTs
by geektron (Curate) on Jun 16, 2005 at 02:32 UTC
    i get:
    Can't use an undefined value as a HASH reference at ...

    using:

    warn "debug:" . $pass->{r}->content->{year} . " " . $pass->{r}->content->{foundation};
    which is the same, just no temp var.

    could i be missing something in my mod_perl install? that's all i can think of ...

      That could be important, Apache::Request uses that process for getting the POST content, which can only be read once. Maybe the content is already pulled somewhere. That would cause your original error and the undefined value error as well.

      How is $pass being defined?

      Don
      WHITEPAGES.COM | INC

      Edit by castaway: Closed small tag in signature