HTML Code:
<input type="checkbox" name="alotofcheckboxes[]" value="1" />
<input type="checkbox" name="alotofcheckboxes[]" value="2" />
<input type="checkbox" name="alotofcheckboxes[]" value="3" />
<input type="checkbox" name="alotofcheckboxes[]" value="4" />
<input type="checkbox" name="alotofcheckboxes[]" value="5" />
<input type="checkbox" name="alotofcheckboxes[]" value="6" />
<input type="checkbox" name="alotofcheckboxes[]" value="7" />
<input type="checkbox" name="alotofcheckboxes[]" value="8" />
<input type="checkbox" name="alotofcheckboxes[]" value="9" />
<input type="checkbox" name="alotofcheckboxes[]" value="10" />

<br><br>
You'll get the checked ones as an array.