Ver Mensaje Individual
  #5 (permalink)  
Antiguo 01/12/2009, 22:07
Avatar de jackson666
jackson666
 
Fecha de Ingreso: noviembre-2009
Ubicación: Buenos Aires, Argentina
Mensajes: 1.971
Antigüedad: 14 años, 5 meses
Puntos: 65
Respuesta: Ayuda con pase de variables

Bueno, me llevo un tiempito, me parece que te lo voy a cobrar :p

Código PHP:
<form action="algo.php" method="post"> 
                <tr> 
                    <td width="10%" height="25"> 
                        <font face="verdana" size="1" color="black"> 
                            <input type="hidden" name="codProd" value="<?php echo $row["codigo_producto"]; ?>" /><?php echo $row["codigo_producto"]; ?>
                        </font> 
                   </td> 
                    <td width="30%" height="25"> 
                        <font face="verdana" size="1" color="black"> 
                            <input type="hidden" name="detalleProd" value="<?php echo $row["detalle_producto"]; ?>"/><?php echo $row["detalle_producto"]; ?>
                        </font>
                    </td> 
                    <td width="20%" height="25"> 
                        <font face="verdana" size="1" color="black"> 
                            <input type="hidden" name="precio" value="<?php echo $row["precio_producto"]; ?>"/>$<?php echo $row["precio_producto"]; ?>
                        </font>
                   </td> 
                    <td width="10%" height="25">                     
                  
                    <input name="cantidad" type="text" size="5" /> 
                       </td> 
                     
                    <td width="10%" height="25">
                    <input type="submit" value="Enviar"/> 
                    </td>    
                </tr> 
        </form>
y en la accion del formulario levantas todo por post y haces la cuenta de precio*cantidad y listo!