For the moment its run OK - I will find a better solution. My controller received a array with data[Blogs_tags][checkID] and parse it to associate with my Blogs_id at each row. maybe its not so clear i post the code:
$str = ''; $i = 0; foreach($tags as $name): $i++; $str .= '<input type="checkbox" name="data[Blogs_tags][checkID]['. $i.']" value="'.$name['Tag']['id'].'" '; foreach($data['Tag'] as $value): if($value['id']==$name['Tag']['id']) { $str .= ' checked="1" '; }else{ $str .= ' '; } endforeach; $str .= ' /> '.$name['Tag']['name'].'<br />'; endforeach; echo $str; On 28 feb, 20:07, "codecowboy" <[EMAIL PROTECTED]> wrote: > How do you build an array of checkboxes? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---