Ver Mensaje Individual
  #2 (permalink)  
Antiguo 29/01/2013, 06:50
faseb
 
Fecha de Ingreso: septiembre-2012
Ubicación: posadas
Mensajes: 53
Antigüedad: 11 años, 7 meses
Puntos: 0
Respuesta: mostrar valor al seleccionar algo

esto tengo para la seleccion y el precio


<table width="520" border="0">
<tr>
<td width="60">Producto:</td>
<td width="4">&nbsp;</td>
<td width="144">Cantidad:</td>
<td width="4">&nbsp;</td>
<td width="144">Unitario:</td>
<td width="4">&nbsp;</td>
<td width="56">Total:</td>
</tr>
<tr>
<td><select name="ID_PROD"><?php
$temp=mysql_query('
select COD_PROD, DESCRIPCION
from productos
order by DESCRIPCION');
while ($temp_=mysql_fetch_row($temp)){
echo '<option value="'.$temp_[0].'">'.$temp_[1].'
</option>';}
?></select></td>
<td></td>
<td><input name="CANTIDAD" type="text" onChange="calcula()"></td>
<td>&nbsp;</td>
<td><input name="PRECIO" type="text" onChange="calcula()"></td>
<td>&nbsp;</td>
<td><input type="text" name="SUBTOTAL"></td>
<td width="11">&nbsp;</td>
</tr>
</table>

solo tengo que ingresar la cantidad y me calcula solo el subtotal.