Counting number of checked checkboxes in PHP
<p>I don't need to know which ones are checked, just how many. I'd like to know what to name each checkbox and how to get and count the values using the get method.</p>

<p>EDIT:
This code is returning 1 when I have multiple checkboxes with the name risks[] and I have 4 of them checked. Not sure why.</p>

<pre><code>print count($_GET['risks'])
</code></pre>
