Ver Mensaje Individual
  #2 (permalink)  
Antiguo 11/06/2003, 17:07
Avatar de Kaopectate
Kaopectate
Colaborador
 
Fecha de Ingreso: diciembre-2001
Ubicación: Curaçao (Antillas Holandesas)
Mensajes: 3.179
Antigüedad: 22 años, 5 meses
Puntos: 38
Hola Lethe.

Prueba con esto:

Código PHP:
<html>
 <
head>
   <
script language="JavaScript">
    function 
separa(){
     var 
valor;
     
with (document.frm){
      
valor valores.value;
      
valor valor.split(",");
      
nombre.value valor[0];
      
edad.value valor[1];
     }
    }
   
</script>
  </head>
 <body>
  <form name="frm">
   Valores
   <input type="text" name="valores" value='"Rosa Perez",17'><br>
   Nombre
   <input type="text" name="nombre" readonly><br>
   Edad
   <input type="text" name="edad" readonly><br>
   <input type="button" value="Separa" onclick="separa()">
  </form>
 </body>
</html> 
Saludos.