arrays in FORM

Jake jake at bugzilla.org
Fri Apr 1 20:18:51 UTC 2005


You should be using the $cgi stuff right now in Bugzilla, though I'm not 
an expert at that to say for sure how to do it. As I recall, there's an 
MFORM variable that has arrays when there are multiple choices.

Albert Ting wrote:

>If I have something like below in a template:
>
>     <input type=checkbox name=choices value="1">1
>     <input type=checkbox name=choices value="2">2
>     <input type=checkbox name=choices value="3">3
>     <input type=checkbox name=choices value="4">4
>
>Is there a way to get the data back as an array, something like:
>
>    @{$::FORM{'choices'}}
>
>Best I can tell, FORM only holds strings.
>
>Thanks,
>Albert
>-
>To view or change your list settings, click here:
><http://bugzilla.org/cgi-bin/mj_wwwusr?user=jake@bugzilla.org>
>  
>




More information about the developers mailing list