Problem with HTML list box with multiple selections

9 views
Skip to first unread message

Nick Ramsay

unread,
Nov 14, 2009, 5:23:00 AM11/14/09
to inspekt
Using some HTML like this:

<select name='test' multiple='yes'>
<option value='1'>one</option>
<option value='2'>two</option>
</select>

and selecting them both, I'm only able to retrieve the last item.

if ($this->cage->post->keyExists('test')) {
print_r($this->cage->post->getRaw('test'));
}

I've been able to get multiple checkboxes before, but not multiple
list items?

Thanks in advance,

Nick
http://HotaruCMS.org

Nick Ramsay

unread,
Nov 14, 2009, 7:05:26 AM11/14/09
to inspekt
Ahhh, I just needed to name the select tag "test[]" instead of "test".
Problem solved! :)

Ed Finkler

unread,
Nov 14, 2009, 11:02:48 AM11/14/09
to ins...@googlegroups.com
Ah yes, that'll do it. 8)

Thanks for your continuing interest in Inspekt, btw. It encourages me
to continue working on it.

--
Ed Finkler
http://funkatron.com
Twitter:@funkatron
AIM: funka7ron
ICQ: 3922133
XMPP:funk...@gmail.com
> --
>
> You received this message because you are subscribed to the Google Groups "inspekt" group.
> To post to this group, send email to ins...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/inspekt?hl=.
>
>
>
Reply all
Reply to author
Forward
0 new messages