thanks a lot for your replies, i feel i'm slowly heading in the right direction!
this is the code i'm struggling on now:
$recs=Array();
for($i=0; $i<$aantal; $i++){
if (isset($_POST['inschrijvingID[$i]']))$recs[$i]="inschrijvingID[$i]";
$i++;
}
echo count($recs);
looking better?
still, however, no values are stored in $recs
what am i doing wrong?
thanks a lot in advance
edit: the inschrijvingID[] comes from this form:
<form name="form" method="post" action="testpost.php">
<?php do { ?>
<tr>
<td><?php echo $row_result['sporttakgegevens']; ?></td>
<td><input name="betalingID[]" type="checkbox" id="betalingID" value="<?php echo $row_betaling['betalingID']; ?>"></td>
<td><input name="inschrijvingID[]" type="hidden" id="inschrijvingID" value="<?php echo $row_result['inschrijvingID']; ?>"></td>
</tr><br>
<?php } while ($row_result = mysql_fetch_assoc($result)); ?>
<input type="submit" name="Submit" value="OK">
</form>