view source of the form to see what the key/value pairs of the checkbox is.
and u will notice that all of them are named test[0]
so move $b=0 outside the while loop
ie change
while ($s<=$a)
{
$b=0;
to
$b=0;
while ($s<=$a)
{
also its better if u do this : instead of having this
echo "<form action= 'test.php?action=1' method= 'post'>";
use this
echo "<form action= 'test.php' method= 'post'>";
echo "<input type=hidden name=action value=1>";
and replace $GET['action'] by $POST['action']
reg
kevin