index.php
<form method="post" action="allok.php" style="margin-bottom:3px;">
<?php
for ($i=0; $i < 10; $i++) {
?>
<input type='checkbox' value="<?php echo $i?>" name='item[]' class='ck' />
<?php
echo $i;
echo "<br>";
}
?>
<input type="submit" value="同意"/>
</form>
allok.php
<?php
$arr = $_POST["item"];
for ($i= 0;$i< count($arr); $i++){
$str= $arr[$i];
echo $str;
echo "<br>";
}
?>