Ver Mensaje Individual
  #7 (permalink)  
Antiguo 03/11/2006, 05:17
natxojarto
 
Fecha de Ingreso: octubre-2006
Mensajes: 204
Antigüedad: 17 años, 6 meses
Puntos: 0
Que va no me sale repetido nada mira te pongo el que he hecho antes con la selecciond e hombre y mujer es que creo q esta igual y se me hace raro que uno funcione y el otro no
[PHP]<? $str_1= "SELECT * FROM t_coi_tsexo ORDER BY ID";
$sql_1= mysql_query($str_1) or die(mysql_query);
while($res_1=mysql_fetch_array($sql_1)){
if ($res_1[SEXO]==$fila[SEXO]){
?>
<select name="Sexo" size="1" >
<option value="<?=$res_1[SEXO]?>" selected><?=$res_1[SEXO]?>
<? }} ?>
<option value="HOMBRE">HOMBRE
<option value="MUJER">MUJER
</select>[PHP]

Este funciona perfectamente
El problema igual puede ser la funcion Otros, te la pongo tambien por si acaso:
[PHP]function Otros(sel){
if (sel=='0'){
document.getElementById('Otros').style.display = "block";
}else{
document.getElementById('Otros').style.display = "none";
}
}[PHP]