Studiati questo codice:
Codice PHP:
<form method="post">
<input type="checkbox" name="opzione[Valore 1]" checked="checked" />
<input type="checkbox" name="opzione[Valore 2]" checked="checked" />
<input type="checkbox" name="opzione[Valore 3]" checked="checked" />
<input type="checkbox" name="opzione[Valore 4]" checked="checked" />
<input type="submit" />
</form>
<pre>
<?php
print_r($_POST);
$_POST['opzione'] = (isset($_POST['opzione']) && is_array($_POST['opzione'])) ? $_POST['opzione'] : array();
print(implode(', ', array_keys($_POST['opzione'])));
?>
</pre>