vince. wrote:
>
> Hi,
>
> Please reply to the list.
>
> Just use a regular checkbox and in the name specify it as an array
>
> <input type='checkbox' name='test[]' value='1' />
> <input type='checkbox' name='test[]' value='2' />
> <input type='checkbox' name='test[]' value='3' />
> <input type='checkbox' name='test[]' value='4' />
>
>
> Then on the PHP side just refer to $_POST['test'] as an array/.
>
>
> On Fri, May 29, 2009 at 7:39 PM, Jalil Feghhi
> <[email protected]>wrote:
>
>> Hi Vadim,
>>
>> Thanks for your help. I want to do it on server side. I got your post on
>> using lastinsertid(). I will try it.
>>
>> -Jalil
>>
>>
>> On Fri, May 29, 2009 at 9:34 AM, Vadim Gabriel <[email protected]>
>> wrote:
>>
>>> Do you want to do it on the client side (JS) or server side?
>>>
>>> On Fri, May 29, 2009 at 7:32 PM, Jalil F. <[email protected]>
>>> wrote:
>>>
>>>>
>>>>
>>>> I have a form using Zend_Form and want to create several
>>>> Zend_Form_Element_Checkbox elements on this form that are created
>>>> dynamically.
>>>>
>>>> I like to get an array of all selected Zend_Form_Element_Checkboxes in
>>>> my
>>>> view after the form is posted. Is this possible? If not, what is the
>>>> best
>>>> way to do it?
>>>>
>>>>
>>>> Thanks,
>>>>
>>>> -J
>>>> --
>>>> View this message in context:
>>>> http://www.nabble.com/How-to-get-list-of-all-selected-CheckBoxes-tp23783123p23783123.html
>>>> Sent from the Zend Framework mailing list archive at Nabble.com.
>>>>
>>>>
>>>
>>>
>>> --
>>> Vincent Gabriel.
>>> Lead Developer, Senior Support.
>>> Zend Certified Engineer.
>>> Zend Framework Certified Engineer.
>>> -- http://www.vadimg.co.il/
>>>
>>>
>>>
>>>
>>
>>
>> --
>> -Jalil
>>
>
>
>
> --
> Vincent Gabriel.
> Lead Developer, Senior Support.
> Zend Certified Engineer.
> Zend Framework Certified Engineer.
> -- http://www.vadimg.co.il/
>
>
My form is extending Zend Form. How can I add the above code you mentioned
to a Zend Form? Could you translate it to Zend calls?
Thanks for the help.
-J
--
View this message in context:
http://www.nabble.com/How-to-get-list-of-all-selected-CheckBoxes-tp23783123p23783671.html
Sent from the Zend Framework mailing list archive at Nabble.com.