Creo que está mal planteado el asunto, debería ser algo asi;
Código PHP:
Ver original</table>
<p> </p>
<table width="398" height="109" border="1">
<tr>
<td height="23" colspan="2" align="center">Pedido</td>
</tr>
<tr>
<td height="21" align="center">Producto</td>
<td align="center">Cantidad</td>
</tr>
<?php for($i=0;$i<count($_POST["CANTPROD"]);$i++){?> <tr>
<td><?php echo $_POST['NOMPROD'][$i];?></td>
<td><?php echo $_POST["CANTPROD"][$i];?></td>
</tr>
<?php }?>
</table>
<p> </p>