Tema: js y php
Ver Mensaje Individual
  #10 (permalink)  
Antiguo 28/04/2006, 06:53
Avatar de claudiovega
claudiovega
 
Fecha de Ingreso: octubre-2003
Ubicación: Puerto Montt
Mensajes: 3.667
Antigüedad: 20 años, 6 meses
Puntos: 11
Código PHP:
<form name="personas" method="post" action="" >
<select name="Combo_personas" id="Combo_personas" onchange="document.personas.submit();">
<option value="">Seleccione</option>
<?php 
   
while($fila mysql_fetch_array($result)){
?>
<option value="" <?php if ($_POST["combo_personas"]== $fila["personas"]) echo "selected" ?>><?php echo $fila["personas"]?></option>
<?php
   
}
   
mysql_free_result($result);
?>
  </select>
<?php
   $result1
=mysql_query("select * from img_redes where img_personas='".$_POST["combo_personas"]."'");
?>