title: How to validate checkbox group in PHP
body: <p>Hi Im struggling with this problem, can some one help?
  I got a series of check boxes dynamically populated. the line looks like below which is part of a While loop.</p>
  
  <pre><code>echo "&lt;td class='brc'&gt;&lt;input type='checkbox' name='delz[]' value='$wec' &gt;&lt;/td&gt;";
  </code></pre>
  
  <p>when validating i'm finding very difficult to see at-least once check box is check in the loop. I got the following to work, which identifies vise versa what i need. How do I change this to give me an output when nothing is checked a message echo saying 'nothing checked'?</p>
  
  <pre><code>    $selectboxes = $_POST['delz'];
  foreach($selectboxes as $A)
  {if($selectboxes == ""){echo "Some check boxes are selected !!!"; return;}}
  </code></pre>