Ver Mensaje Individual
  #6 (permalink)  
Antiguo 20/09/2005, 12:37
Avatar de JavierB
JavierB
Colaborador
 
Fecha de Ingreso: febrero-2002
Ubicación: Madrid
Mensajes: 25.052
Antigüedad: 23 años
Puntos: 772
Rehola.

Te dejo un poco de código a ver si vamos avanzando:
Código PHP:
<html>
<
head>
<
script type="text/javascript">
function 
anadir(frm,valor) {
  
txt document.createTextNode(valor+': ');
  
frm.appendChild(txt);
  
ele document.createElement('input');
  
ele.name valor;
  
frm.appendChild(ele);
  
ele document.createElement('br'); 
  
frm.appendChild(ele);
  
frm.sel.options[frm.sel.selectedIndex] = null;
}
</script>
</head>
<body>
<form>
<select name="sel" onchange="anadir(this.form,this.value)">
<option value="Dirección">Dirección</option>
<option value="Fono">Fono</option>
<option value="Ciudad">Ciudad</option>
<option value="Carreras">Carreras</option>
<option value="Director">Director</option>
</select>
<br />
</form>
</body>
</html> 
Salutres,