Alan,
I think you have encountered a bug as the repeat selection code is in the wrong place, your table code should look like this:
<form id="form1" name="form1" method="post" action="">
<table border="0">
<?php do { ?>
<?php
// RepeatSelectionCounter_1 Begin Loop
$RepeatSelectionCounter_1_IterationsRemaining = $RepeatSelectionCounter_1_Iterations;
while($RepeatSelectionCounter_1_IterationsRemainin g--){
if($RepeatSelectionCounterBasedLooping_1 || $row_Team_Score_Edit){
?>
<tr>
<td>Team</td>
<td><input type="hidden" name="WADA_RepeatID_team_id_<?php echo $RepeatSelectionCounter_1; ?>" id="WADA_RepeatID_team_id_<?php echo $RepeatSelectionCounter_1; ?>" value="<?php echo $row_Team_Score_Edit["team_id"]; ?>" />
<input type="text" name="Result_pos_<?php echo $RepeatSelectionCounter_1; ?>" value="<?php echo htmlentities($row_Team_Score_Edit['Result_pos'], ENT_COMPAT, 'utf-8'); ?>" size="32" /></td>
<td><input type="text" name="Result_score_<?php echo $RepeatSelectionCounter_1; ?>" value="<?php echo htmlentities($row_Team_Score_Edit['Result_score'], ENT_COMPAT, 'utf-8'); ?>" size="32" /></td>
<td><input type="text" name="HB_<?php echo $RepeatSelectionCounter_1; ?>" value="<?php echo htmlentities($row_Team_Score_Edit['HB'], ENT_COMPAT, 'utf-8'); ?>" size="32" /></td>
</tr>
<?php
} // RepeatSelectionCounter_1 Begin Alternate Content
else{
?>
<td>No records match your request.</td>
<?php } // RepeatSelectionCounter_1 End Alternate Content
if(!$RepeatSelectionCounterBasedLooping_1 && $RepeatSelectionCounter_1_IterationsRemaining != 0){
if(!$row_Team_Score_Edit && $RepeatSelectionCounter_1_Iterations == -1){$RepeatSelectionCounter_1_IterationsRemaining = 0;}
$row_Team_Score_Edit = mysql_fetch_assoc($Team_Score_Edit);
}
$RepeatSelectionCounter_1++;
} // RepeatSelectionCounter_1 End Loop
?>
<?php } while ($row_Team_Score_Edit = mysql_fetch_assoc($Team_Score_Edit)); ?>
<tr>
<td> </td>
<td><input type="submit" name="button_<?php echo $RepeatSelectionCounter_1; ?>" id="button_<?php echo $RepeatSelectionCounter_1; ?>" value="Submit" /></td>
<td> </td>
<td> </td>
</tr>
</table>
</form>
try that and see what happens