We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

Array CheckField

How can i create an array check field in volt?

in pure html is: <input type="checkbox" name="userChk[]" class="userDelChk" value="1" >

i tried this: {{ check_field('userChk[]', 'class':'userDelChk' , 'value':'1') }}

but when i select multiple items and tried getting the post value it only returns 1 of the selected value.



26.3k

Did you checked in a HTML source what code have been generated? Copy it here.