Scusa se ho semplificato qualcosa ma non riuscivo a leggerlo
codice:
<%
Dim ModID,Cnt_Slzn
Cnt_Slzn=1
ModID = Request("Id")
if ModID = "" then
ModID = 5
end if
MyDB="DBSqdr.mdb"
Set conn = Server.CreateObject("ADODB.Connection")
Set rs = Server.CreateObject("ADODB.Recordset")
conn.Open Application("DBSqdr_ConnectionString")
dsnpath = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Server.MapPath(myDB)
querysql="select * from Anagrafe where id >=" & ModID
rs.Open querysql, conn, 3, 3
rs.movefirst
%>
<table width="500" cellspacing="0" border="1"><tr>
<%
do while not rs.bof
if rs.Eof = true then
exit do
end if
%>
<td width="20"><%=Cnt_Slzn%></td>
<td width="200"><%=Rs("Cognome")%></td>
<td width="200"><%=Rs("Nome")%></td>
<td width="20"><input type="checkbox" name="Sel_<%=Rs("id")%>" value="<%=rs("Cnvct")%>"></td>
</tr>
<%
Cnt_Slzn = Cnt_Slzn + 1
Rs.Movenext
loop
Rs.MoveFirst
%>
Programma che riceve:
codice:
For Each item in request.form
nome = Item
valore = request.form(Item)
if lef(nome,4) = "Sel_" then ' ho trovato uno dei checkbox!
tuo_id = mid(nome,5)
' adesso hai l'ID ed il valore... fanne buon uso
end if
Next
ciao