Código PHP:
<th>Dpto.2P:</th>
<td><input type="text" name="valdep2"value="<?php echo $reg['dpto2p']; ?>"/></td>
<th>Iva D2P:</th>
<td><input type="text" name="ivad2" value="<?php echo $reg['ivad2']; ?>"/> </td>
<th>Dpto.3P:</th>
<td><input type="text" name="valdep3" value="<?php echo $reg['dpto3p']; ?>"/> </td>
<th>Iva D3P:</th>
<td><input type="text" name="ivad3" value="<?php echo $reg['ivad3']; ?>"/> </td>
</tr>