![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
27/03/2007, 10:26
|
| | Fecha de Ingreso: abril-2006 Ubicación: Colombia
Mensajes: 648
Antigüedad: 18 años, 10 meses Puntos: 3 | |
Re: Formulario dinamico 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>
__________________ Suerte. _______________________________ "La vida es el principio de la muerte". |