Come noti, per creare un array di input, è sufficiente dare lo stesso nome a tutti, poi si possono manipolare come un array.codice:<html> <head> <title>Valori Array</title> <script type="text/javascript"> function vedi(LaForm) { var valori="Valori:\n"; for (var i=0; i < LaForm.pippo.length ; i++) { valori += "pippo[" + i.toString() + "]:" + LaForm.pippo[i].value + "\n"; } alert(valori); } </script> </head> <body> <form name="test"> <input name="pippo" type="text"> <input name="pippo" type="text"> <input name="pippo" type="text"> <button onclick="vedi(this.form)" value="Vedi">Vedi</button> </form> </body> </html>
HTH
Zappa

Rispondi quotando