Ver Mensaje Individual
  #2 (permalink)  
Antiguo 12/07/2006, 13:56
fido85
 
Fecha de Ingreso: mayo-2004
Ubicación: Barcelona
Mensajes: 200
Antigüedad: 20 años
Puntos: 0
Busqueda

Hola

En los select tamb puedes pasarle el valor, y dependiendo del valor marcarlo
EJ:

Código PHP:
include ("encabezado.php");
    
 
$consulta2"select dc_Calle, dg_Calle from t_calles order by dg_Calle";
$rs2=mysql_query($consulta2);
echo 
'<select name="calle">';

while (
$row=mysql_fetch_array($rs2))
{
   echo 
"<option value=".$row['dc_Calle'];
   
   if(
$row['dc_Calle'] == $VALOR QUE RECOGES){
      echo 
" selected";
   }

   echo 
">".$row['dg_Calle']."</option>";

Espero q te sirva, Sald2