When I submit my form all my checked check boxes are unchecked as usual but I need to keep them checked after form submit. how it is possible?
<?php
for($i = 0; $i<count($agetalsodelivering); $i++)
{
echo $this->Form->input('delivering.',array('hiddenField' => false,'type'=>'checkbox','value'=>$agetalsodelivering[$i]['Bangsalsodelivering']['name'],'div'=>'checkbox','class'=>'checkboxfilter','id'=>$agetalsodelivering[$i]['Bangsalsodelivering']['name'],'label'=>$agetalsodelivering[$i]['Bangsalsodelivering']['name']));
}
?>
Aucun commentaire:
Enregistrer un commentaire