[MTOS-dev] multiple checkboxes, app->param

Mark Carey mark at mt-hacks.com
Fri May 9 09:40:20 PDT 2008


On Fri, May 9, 2008 at 11:20 AM, Steve Ivy <steveivy at gmail.com> wrote:
>> my @uris = $app->param('uris');
>>
>> Correct?

Yes, this works for me.  I use it in a few of my plugins.

However, in my (limited) experience....

>> MT->log(Dumper(@uris));

...will only dump the first element of the array to the log, even if
there are multiple elements.  That said, I am not an expert with
data::dumper.  I am sure there is a better way, but do this:

foreach my $uri (@uris) {
   MT->log(Dumper($uri));
}

-Mark


More information about the MTOS-dev mailing list