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?

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

Many thanks

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

Reply via email to