Ciao Ragazzi,
Ho un quesito particolare: io sto creando tramite ASP una serie di campi dinamicamente come nel codice illustrato con lo stesso nome ma differente ID per identificarli. In questo caso sono 2 ma potrebbero aumentare; come si fa il controllo sui campi in questo caso?
codice:
<form method="POST" action="--WEBBOT-SELF--">
<table>
<tr>
<td width="255" height="21">cognome</td>
<td width="263" height="21">nome</td>
<td width="63" height="21">tipo</td>
<td width="81" height="21">sesso</td>
<td width="50" height="21">c.s.*</td>
</tr>
<tr>
<td width="255" height="23"><input name="cognome" size="20" id="1"></td>
<td width="263" height="23"><input name="nome" size="20" id="1"></td>
<td width="63" height="23">adulto</td>
<td width="81" height="23"><select size="1" name="sesso" id="1">
<option value selected>-----</option>
<option value="M">M</option>
<option value="F">F</option>
</select></td>
<td width="50" height="23"><input id="id1" type="checkbox" value="Y" name="invalido"></td>
</tr>
<tr>
<td width="255" height="23"><input name="cognome" size="20" id=2 ></td>
<td width="263" height="23"><input name="nome" size="20" id=2></td>
<td width="63" height="23">adulto</td>
<td width="81" height="23"><select size="1" name="sesso" id=2 >
<option value selected>-----</option>
<option value="M">M</option>
<option value="F">F</option>
</select></td>
<td width="50" height="23"><input id="2" type="checkbox" value="Y" name="invalido"></td>
</tr>
<tr>
<td width="255" height="21"></td>
<td width="263" height="21"><input type="submit" value="Invia" name="B1"></td>
<td width="63" height="21"></td>
<td width="81" height="21"></td>
</tr>
</table>
</form>