[MTOS-dev] multiple checkboxes, app->param
Steve Ivy
steveivy at gmail.com
Fri May 9 07:20:07 PDT 2008
Here's a bit more info I've collected:
http://pastie.textmate.org/194298
The URIs are in the CGI query object, but for some reason I can't get
them out correctly.
On Fri, May 9, 2008 at 6:50 AM, Steve Ivy <steveivy at gmail.com> wrote:
> Good morning,
>
> From the reading on CGI.pm I've done, given the following psuedo-HTML structure:
>
> [ input type=checkbox name=uris value=uri1 checked /]
> [ input type=checkbox name=uris value=uri2 checked /]
> [ input type=checkbox name=uris value=uri3 /]
>
> When submitted, the browser will send ?uris=uri1&uris=uri2 in the post params.
>
> With CGI.pm (and by extension MT::App), to get the values of 'uris' as
> an array, you would do:
>
> my @uris = $app->param('uris');
>
> Correct? I have some code that does exactly this, but I can't get more
> than 1 URI, as a string, coming back via $app->param('uris'). Have I
> misunderstood how this is supposed to work?
>
> --Steve
>
> --
> Steve Ivy
> http://redmonk.net // http://diso-project.org
> This email is: [ ] bloggable [x] ask first [ ] private
>
--
Steve Ivy
http://redmonk.net // http://diso-project.org
This email is: [ ] bloggable [x] ask first [ ] private
More information about the MTOS-dev
mailing list