[MTOS-dev] multiple checkboxes, app->param
Steve Ivy
steveivy at gmail.com
Fri May 9 06:50:30 PDT 2008
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
More information about the MTOS-dev
mailing list