Verify Array issue on $form->text
Permalink
I am using the following code in a form.
This works fine on an initial display on a single page. But if I try to submit and an error is thrown, the text boxes display "Array" as a value (which is wrong). When I use
Everything displays correctly, even when an error is thrown.
This seem to be an issue with the way C5 handles this item or am I using it wrong?
Any input is appreciated. Thanks...
echo $form->text('name[]', $name[$count]);
This works fine on an initial display on a single page. But if I try to submit and an error is thrown, the text boxes display "Array" as a value (which is wrong). When I use
<input type="text" name="name[]" value="<?php echo $name[$count] ?>" />
Everything displays correctly, even when an error is thrown.
This seem to be an issue with the way C5 handles this item or am I using it wrong?
Any input is appreciated. Thanks...