Ver Mensaje Individual
  #14 (permalink)  
Antiguo 27/02/2011, 13:55
Sairox
 
Fecha de Ingreso: julio-2004
Mensajes: 323
Antigüedad: 20 años, 6 meses
Puntos: 1
Respuesta: ayuda urgente

Cita:
<html>
<form>
<select name="valor" id="valor" multiple SIZE="20">
<option> Valores</option>
</select></form>
</html>

<html>

<body>

<form>

<INPUT TYPE="submit" VALUE="Enviar datos">

<select name="productos" id="productos" MULTIPLE SIZE="20" onchange="valor">

<option>Seleccione los productos que desea</option>
<?php
include("include/conexion.php");
$conn = conectar();
$consulta="SELECT * FROM productos ORDER BY ID";
$result = mysql_query($consulta,$conn);
while ($row = mysql_fetch_row($result))
{
?>
<option value="<?php echo $row[0]?>" ><?php echo $row[2]?>, <?php echo $row[0]?>, <?php echo $row[1]?> </option>

<?php
}
desconectar($conexion);
?>
</select>


</form>
</body>
</html>

asi logre sacar los botones.

creo que el onchange lo estoy haciendo mal, de verdad de este si no tengo ni idea de como funciona el onchange :S corrigeme si lo hice mal arriba?