Hi,
Ihave a databasejoin element rendered as a group of checkboxes, I want to store the number of checkboxes that are checked, the element's name is:
ordenes_publicidad_15_repeat___Orden_Ediciones
I used some code from the Wiki to no avail:
$cnt = 0;
$vals = $data['ordenes_publicidad_15_repeat___Orden_Ediciones'];
foreach ($vals as $val)
{
if ($val != 0)
{
cnt++;
}
}
return $cnt;
Could you help me with this, I'm stuck..
Thanks
Carlos
Ihave a databasejoin element rendered as a group of checkboxes, I want to store the number of checkboxes that are checked, the element's name is:
ordenes_publicidad_15_repeat___Orden_Ediciones
I used some code from the Wiki to no avail:
$cnt = 0;
$vals = $data['ordenes_publicidad_15_repeat___Orden_Ediciones'];
foreach ($vals as $val)
{
if ($val != 0)
{
cnt++;
}
}
return $cnt;
Could you help me with this, I'm stuck..
Thanks
Carlos