Ver Mensaje Individual
  #5 (permalink)  
Antiguo 09/11/2007, 12:35
arneda
 
Fecha de Ingreso: noviembre-2002
Mensajes: 46
Antigüedad: 22 años, 4 meses
Puntos: 0
Re: Formulario dinamico

Cita:
Iniciado por El Patrón. Ver Mensaje
Hola

Bueno esto tal vez te sirva

<form name="prueba" method="post">
<select name="ojo" onchange="location.href='a.php?ver='+prueba.ojo.va lue">
<option value="">Seleccione</option>
<option value="1" <? if($_GET['ver']==1) {?> selected <?}?>>Uno</option>
<option value="2" <? if($_GET['ver']==2) {?> selected <?}?>>Dos</option>
</select>

<? if($_GET['ver']==1) { ?> Nombre <input type="text" name="nombre"> <? }?>
<? if($_GET['ver']==2) { ?> Apellido <input type="text" name="nombre"> <? }?>
</form>
GRACIAS!!!! No saben todo lo que busque esto, encontraba formas complicadisimas. Anda super bien!

Saludos