Ver Mensaje Individual
  #2 (permalink)  
Antiguo 17/03/2007, 04:36
Avatar de JavierB
JavierB
Colaborador
 
Fecha de Ingreso: febrero-2002
Ubicación: Madrid
Mensajes: 25.052
Antigüedad: 23 años
Puntos: 772
Re: como llenar un textarea a partir de varios text field's

Hola bigmario

Prueba este código:

Código PHP:
<html>
<
head>
<
script type="text/javascript">
  function 
anadir(frm) {
    
frm.lista.value += frm.nombre.value ' 'frm.apellidos.value ' ' frm.edad.value '\n';
    
frm.nombre.value '';
    
frm.apellidos.value '';
    
frm.edad.value '';
  }
</script>
</head>
<body>
<form>
<input type="text" name="nombre" />
<input type="text" name="apellidos" />
<input type="text" name="edad" />
<textarea name="lista"></textarea>
<input type="button" onclick="anadir(this.form)" />
</form>
</body>
</html> 
Saludos,