ah ecco....non ho nulla nell'onsubmit....sapevo che mi mancava un pezzo....
Codice PHP:
<form name="sub_weap" method="post" action="armamento.php">
<?php
for ($n="1";$n<"50";$n++)
{
$n_wea_in_equipe="n_art".$n;
if(isset($_SESSION['weapon'][$n_wea_in_equipe]))
{
echo "<tr>
<td align=\"center\" ></td>
<td align=\"center\" ><input type=\"button\" name=\"del\" value=\"X\" ></td>
<td align=\"center\" valign=\"middle\"><h1><a href=\"#\" class=\"schede\" onClick=\"MM_openBrWindow('scheda_weap.php','','scrollbars=yes,width=500,height=650')\">".$_SESSION['weapon][$n_wea_in_equipe]['cod']."</a></h1></td>
<td align=\"center\"><h1><a href=\"#\" class=\"schede\" onClick=\"MM_openBrWindow('scheda_weap.php','','scrollbars=yes,width=500,height=650')\">".$_SESSION['weapon][$n_wea_in_equipe]['descrizione']."</a></h1></td>
<td align=\"center\"><h1>".$_SESSION['weapon][$n_wea_in_equipe]['peso']."€</h1></td>
<td align=\"center\" valign=\"middle\" ><input name=\"indossa\" type=\"text\" size=\"3\" value=\"".$_SESSION['weapon][$n_wea_in_equipe]['indossa']."\" onchange=\"this.form.submit()\"></td>
<tr>";
}
}
<input type="submit" name="sub_weap" value="salva" style="margin-right:20px;width:100px">
direi che mi manca quella parte dell'onsubmit...
in pratica aggiornando il valore nel campo text delle armi indossate dovrebbe fare il submit.
con php controllare se il submit è stato eseguito e fare l'include di un file.