Ho modificato un po'il codice nel modo seguente perché altrimenti non mi avrebbe aggiunto i campi come volevo (riga sotto riga)...
codice:
<html>
<head>
</head>
<body>
<?php
echo("<table align =\"center\">");
echo("<tr>
<td>9) Debiti privati</td>
<td><input name=\"DebPriv\" type=\"text\" maxLength=\"10\" size=\"10\" class=\"importo\" onKeyUp=\"return controllaNumeri();\" onblur=\"somma(this.form)\" /></td>
<td><input name=\"Commento 9)\" type=\"button\" value=\"*\" onClick=\"show_hide(this);\"></td>
<td><input name=\"Aggiungi_DP\" type=\"button\" value=\"Aggiungi\"><input name=\"Rimuovi_DP\" type=\"button\" value=\"Rimuovi\"></td>
<td><input name=\"DebPrivCont\" type=\"text\" size=\"2\" value=\"".$_GET["DebPrivCont"]."\"></td>
</tr>");
for($x=0; $x<$_GET["DebPrivCont"]; $x++){
echo("<tr>
<td></td>
<td><input type=\"text\" size =\"10\" name=\"nDebPrivCont".$x."\" value=\"".$_GET["nDebPrivCont".$x]."\"></td>
<td></td>
</tr>");
}
for($y=0;$y<$_GET["DebPrivCont"];$y++){
$valori[$y]=$_GET["nDebPrivCont".$y];
}
echo("</td>
<td></td>
</tr>");
?>
</body>
</html>
qualcuno ha qualche suggerimento su come associare quei bottoni pf?
Grazie