Checkbox array
Posted: Sun Mar 11, 2007 9:43 am
firt of all , the problem not found in forum's search page
how can I catch the form checkbox array in ZF
I make the well known code like this:
and in the controller
gives me null array
and if I do that /* without the brackets*/
it gives me an error in noTags() function because it expects second argument (parameter ) as string
how can I catch the form checkbox array in ZF
I make the well known code like this:
Code: Select all
start loop
<input type="checkbox" name="id[]" value="" />
end loopCode: Select all
$theID[] = trim($post->getAlpha('id[]'));and if I do that /* without the brackets*/
Code: Select all
$theID[] = trim($post->getAlpha('id'));