cala932, si no sabes cuantos $box vas a tener es mejor que utilices array. Seria algo asi:
Código PHP:
<body>
<?
if ( $_POST )
{
foreach( $_POST['boxes'] as $k => $v )
{
print "box $k - value:$v <br />";
}
}
?>
<form action="pagina1.php" method="post">
<?
$i=0;
while($i < 5 )
{
?>
<input type="checkbox" name="boxes[]" value="<?=$i?>" />
<br />
<?
$i++;
}
?>
<input type="submit" value="Enviar" />
</form>
</body>