I have a foreach loo on one of my pages, checking to see how many checkboxes are checked, which works fine as long as their checked
If none of them are i get an error
Warning: Invalid argument supplied for foreach() in
How would i go about stopping this error
This is the code i'm using
foreach ($_POST['character'] as $char) {
$character = $character + 1;
}