Ver Mensaje Individual
  #2 (permalink)  
Antiguo 11/03/2008, 15:24
Avatar de eft0
eft0
 
Fecha de Ingreso: junio-2003
Ubicación: Santiago - Chile
Mensajes: 635
Antigüedad: 20 años, 10 meses
Puntos: 9
Re: Opcion de un Select Predefinida mediante Variable

Rapidamente se me ocurre:

Código PHP:
<select name="Categoria" size="5" style="width: 728px">
<option value="1" <? if ($categoria == "1") echo "selected"?>>Investigador Categoria I</option>
<option value="2" <? if ($categoria == "2") echo "selected"?>>Investigador Categoria II</option>
<option value="3" <? if ($categoria == "3") echo "selected"?>>Investigador Categoria III</option>
<option value="4" <? if ($categoria == "4") echo "selected"?>>Investigador Categoria IV</option>
<option value="5" <? if ($categoria == "5")  echo "selected"?>>Investigador Categoria V</option>
</select>