How can I add the number that are in unit price in a dynamic form?

0

       

DETAIL MATERIALS, SPARE PARTS AND SUPPLIES

     
<br>
<div class="form-group">
  <label for="tablaDetalleMaterialEinsumo">
   <div class='btn btn-success' id="btnNuevaDetalleMaterialEinsumo">Nueva</div>
 </label>
 <table class='table table-bordered table-hover' id="tablaDetalleMaterialEinsumo">
  <tr>
    <th>Detalles De Insumos</th>
    <th>Unidad</th>
    <th>Cantidad</th>
    <th>Precio Unitario</th>
    <th>Valor Total ($)</th>
    <th>OPCION</th>
  </tr>
  <?php for($i=0; $i<sizeof($tabla1); ++$i) { ?>
  <tr>
  <td><input type="text" class="form-control" name="detalle_insumo[]" value=""></td>
    <td><input type="text" class="form-control" name="unidad_insumo[]" value=""></td>
    <td><input type="text" class="form-control" name="cantidad_insumo[]" value=""></td>
    <td><input type="text" class="form-control" name="precio_unitario_insumo[]" value=""></td>
    <td><input type="text" class="form-control" name="valor_total_insumo[]" value=""></td>
    <td class="text-center">

     <div class='btn btn-danger'>Eliminar</div>

   </td>
 </tr>
 <?php } ?>



    
asked by Keane 19.09.2017 в 04:19
source

1 answer

0

The button that you say is to modify? in all cases, if so, should you have the function open () somewhere that has a window.assign? just pass the value that you want as parameter of the function and take it inside the function to send it as GET and you should solve it.

function abrir(param){
windows.location.assign("laotrapagina.php?valor="+param);
}

laotrapagina.php

<?php
$valorGET=$_GET["valor"];
?>

Is it the least idea?

regards,

    
answered by 19.09.2017 / 05:01
source