Not long ago, Konstantin Yotov proclaimed...
> I read in the mod_perl, that arg is more fast than
> CGI::param, but when I try to use it I can get form
> date only when use method GET. I try this:
> %param = $r->method eq 'post' ? $r->content :
> $r->args;
> But without a success. Please give me some advice.

The $r->args method only works for GET requests. You need to use
$r->content to grab the parameters passed in with the POST method.

The Eagle book has a good example of a catch-all:

        my %params;
        my @args = ($r->args, $r->content);
        while(my($name, $value) = splice @args,0,2) {
          push @{$params{$name}}, $value;
        }

The result is a hash (%params) of lists which contains all the name-value 
pair data.

-=Fozz

-- 
Doran L. Barton <[EMAIL PROTECTED]> - Chief Super Hero - Iodynamics LLC
< http://www.iodynamics.com/ > - Linux solutions and dynamic websites
 "Have many accidents here."
    -- Seen in a Tokyo traffic handbook

Reply via email to