Well, with something like this:
<form method='post' id='userform' action='thisform.php'>
<input type='checkbox' name='checkboxvar[]' value='Option One'>1<br>
<input type='checkbox' name='checkboxvar[]' value='Option Two'>2<br>
<input type='checkbox' name='checkboxvar[]' value='Option Three'>3
<input type='submit' class='buttons'>
</form>
And in the php:
<?php
$miArray = $_POST['checkboxvar'];
for($i=0; $i < count($miArray ); $i++){
echo "Seleccionado " . $miArray [$i] . "<br/>";
}
?>
I have taken the examples from StackOverflow in English:
Stack1
Stack2