> Hi,
>
> I have some check boxes in a form and when the form is
> submitted I read the
> checkboxes that have been ticked. However if no checkboxes
> have been ticked
> the following line produces an error, is there a way to suppress this?
>
if (is_array($project))
> foreach ($project as $project_id => $value) {
>   $fields[] = $project_id;
>   $values[] = $value;
> }
>

if (is_array($project))
  foreach ($project as $project_id => $value) {
    $fields[] = $project_id;
    $values[] = $value;
  }
}

HTH,
Craig

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to