Tema: duda php
Ver Mensaje Individual
  #4 (permalink)  
Antiguo 16/06/2011, 08:36
php1
 
Fecha de Ingreso: junio-2011
Mensajes: 36
Antigüedad: 12 años, 11 meses
Puntos: 0
Respuesta: duda php

Este es el formulario donde pongo el checkbox para la seleccion de los productos de ahi cuando me manda a lista.php que es lapagina donde tengo el codigo de la suma.
<form id="envia" name="form2" method="post" action="lista.php">
<p>&nbsp;</p>
<table width="382" border="1">
<tr>
<td width="46"></td>
<td width="125">nombre</td>
<td width="189">precio_venta</td>
</tr>
<?php do { ?>
<tr>
<td><input name="cotizar[]" type="checkbox" id="cotizar" value="<?php echo $row_cotizacion['nombre']?>" />
<input type="hidden" name="valores[]" id="valores" value="<?php echo $row_cotizacion['precio_venta']?>"/>
<label for="cotizar"></label></td>
<td><?php echo $row_cotizacion['nombre']; ?></td>
<td><?php echo $row_cotizacion['precio_venta']; ?></td>
</tr>
<?php } while ($row_cotizacion = mysql_fetch_assoc($cotizacion)); ?>
</table>
</p>
<input type="submit" name="envia" id="envia" value="Enviar" />
</form>