you might want to use a html-php trick
instead of naming your form inputs
<... name="input100" />
<... name="input101" />
<... name="input102" />
you can name them as if they were php arrays, and php will make them into an array for you
<... name="input[]" value="1" />
<... name="input[]" value="2" />
<... name="input[]" value="3" />
will translate into php as
$input = array();
$input[] = "1";
$input[] = "2";
$input[] = "3";
and will show up in the post as
$_POST = array(
'input' => array(
0 => "1",
1 => "2",
2 => "3",
)
);
and in that form you can simply
foreach ( $_POST['input] as $value ) {
/// do whatever with value
}
does that make sense, and is that what you were looking to do?
[edit]
P.S.
if the keys are very important you can always just say
<input type="text" name="input[101]" value="0" />
and it will show up as
$input = array( '101' => '0' );
which is exactly what you had cobbled together above.