the problem is that the form tags are outside of the repeate region. this men that the page is being create with one form on it, and inside that one form the form elements are being repeated.
change the code at lines 591 - 632:
<td colspan="3"><form id="form1" name="form1" method="POST">
<?php
// RepeatSelectionCounter_1 Begin Loop
$RepeatSelectionCounter_1_IterationsRemaining = $RepeatSelectionCounter_1_Iterations;
while($RepeatSelectionCounter_1_IterationsRemaining--){
if($RepeatSelectionCounterBasedLooping_1 || $row_Recordsetsearchallocatedstock){
?>
<table width="100%" border="0">
<tr>
<td><a href="m_jobdetails_addbox.php?stockname=<?php echo $row_Recordsetshowallproducts['subproducttypesid']; ?>&productgrp=<?php echo $row_Recordsetshowallproducts['groupid']; ?>&customerid=<?php echo $row_showcustomerdetails['customerid']; ?>&workorderid=<?php echo $row_showcustomerdetails['workorderid']; ?>"><?php echo $row_Recordsetsearchallocatedstock['serialnumber']; ?></a><span class="style26"><strong><strong><?php echo $row_Recordsetsearchallocatedstock['stockid']; ?></strong></strong></span>
<label>
<input name="stockyid" type="text" id="stockyid" value="<?php echo $row_Recordsetsearchallocatedstock['stockid']; ?>" />
</label>
<input name="hf_subprodid" type="hidden" id="hf_subprodid" value="<?php echo $row_Recordsetsearchallocatedstock['stockname']; ?>" />
<input name="hf_workorderid" type="hidden" id="hf_workorderid" value="<?php echo $row_showcustomerdetails['workorderid']; ?>" />
<input name="hf_customerid" type="hidden" id="hf_customerid" value="<?php echo $row_showcustomerdetails['customerid']; ?>" />
<input name="hf_productgrp" type="hidden" id="hf_productgrp" value="<?php echo $row_Recordsetsearchallocatedstock['groupid']; ?>" />
<input name="hf_price" type="hidden" id="hf_price" value="<?php echo $row_Recordsetsearchallocatedstock['price']; ?>" />
<input name="hf_stockid" type="hidden" id="hf_stockid" value="<?php echo $row_Recordsetsearchallocatedstock['stockid']; ?>" />
<input name="allocatedto" type="hidden" id="allocatedto" value="Customer" />
<input name="hf_installeddate" type="hidden" id="hf_installeddate" value="<?php echo date ('Y-m-d H:i:s'); ?>" />
<input name="hf_installedby" type="hidden" id="hf_installedby" value="<?php echo $_SESSION['MM_Username']; ?>" />
<label>
<input type="submit" name="button" id="button" value="Submit" />
MUST NOT SHOW ALLOCATED BOXES</label></td>
</tr>
</table>
<?php
} // RepeatSelectionCounter_1 Begin Alternate Content
else{
?>
<?php } // RepeatSelectionCounter_1 End Alternate Content
if(!$RepeatSelectionCounterBasedLooping_1 && $RepeatSelectionCounter_1_IterationsRemaining != 0){
if(!$row_Recordsetsearchallocatedstock && $RepeatSelectionCounter_1_Iterations == -1){$RepeatSelectionCounter_1_IterationsRemaining = 0;}
$row_Recordsetsearchallocatedstock = mysql_fetch_assoc($Recordsetsearchallocatedstock);
}
$RepeatSelectionCounter_1++;
} // RepeatSelectionCounter_1 End Loop
?>
</form> </td>
to:
<td colspan="3">
<?php
// RepeatSelectionCounter_1 Begin Loop
$RepeatSelectionCounter_1_IterationsRemaining = $RepeatSelectionCounter_1_Iterations;
while($RepeatSelectionCounter_1_IterationsRemaining--){
if($RepeatSelectionCounterBasedLooping_1 || $row_Recordsetsearchallocatedstock){
?>
<form id="form1_<?php echo $row_Recordsetsearchallocatedstock['stockid']; ?>" name="form1_<?php echo $row_Recordsetsearchallocatedstock['stockid']; ?>" method="POST"><table width="100%" border="0">
<tr>
<td><a href="m_jobdetails_addbox.php?stockname=<?php echo $row_Recordsetshowallproducts['subproducttypesid']; ?>&productgrp=<?php echo $row_Recordsetshowallproducts['groupid']; ?>&customerid=<?php echo $row_showcustomerdetails['customerid']; ?>&workorderid=<?php echo $row_showcustomerdetails['workorderid']; ?>"><?php echo $row_Recordsetsearchallocatedstock['serialnumber']; ?></a><span class="style26"><strong><strong><?php echo $row_Recordsetsearchallocatedstock['stockid']; ?></strong></strong></span>
<label>
<input name="stockyid" type="text" id="stockyid" value="<?php echo $row_Recordsetsearchallocatedstock['stockid']; ?>" />
</label>
<input name="hf_subprodid" type="hidden" id="hf_subprodid" value="<?php echo $row_Recordsetsearchallocatedstock['stockname']; ?>" />
<input name="hf_workorderid" type="hidden" id="hf_workorderid" value="<?php echo $row_showcustomerdetails['workorderid']; ?>" />
<input name="hf_customerid" type="hidden" id="hf_customerid" value="<?php echo $row_showcustomerdetails['customerid']; ?>" />
<input name="hf_productgrp" type="hidden" id="hf_productgrp" value="<?php echo $row_Recordsetsearchallocatedstock['groupid']; ?>" />
<input name="hf_price" type="hidden" id="hf_price" value="<?php echo $row_Recordsetsearchallocatedstock['price']; ?>" />
<input name="hf_stockid" type="hidden" id="hf_stockid" value="<?php echo $row_Recordsetsearchallocatedstock['stockid']; ?>" />
<input name="allocatedto" type="hidden" id="allocatedto" value="Customer" />
<input name="hf_installeddate" type="hidden" id="hf_installeddate" value="<?php echo date ('Y-m-d H:i:s'); ?>" />
<input name="hf_installedby" type="hidden" id="hf_installedby" value="<?php echo $_SESSION['MM_Username']; ?>" />
<label>
<input type="submit" name="button" id="button" value="Submit" />
MUST NOT SHOW ALLOCATED BOXES</label></td>
</tr>
</table></form>
<?php
} // RepeatSelectionCounter_1 Begin Alternate Content
else{
?>
<?php } // RepeatSelectionCounter_1 End Alternate Content
if(!$RepeatSelectionCounterBasedLooping_1 && $RepeatSelectionCounter_1_IterationsRemaining != 0){
if(!$row_Recordsetsearchallocatedstock && $RepeatSelectionCounter_1_Iterations == -1){$RepeatSelectionCounter_1_IterationsRemaining = 0;}
$row_Recordsetsearchallocatedstock = mysql_fetch_assoc($Recordsetsearchallocatedstock);
}
$RepeatSelectionCounter_1++;
} // RepeatSelectionCounter_1 End Loop
?>
</td>
this way each repeated row will be a unique form.