Mail.body="nome cognome " & body1 & body2 ecc....
for i=1 to 5 varbody&i=Request("body" & i) next
Eccoti in sintesi quello che rome ti ha indicato: Se chiami il campo checkbok "hobby", strHobby = Request.Form("hobby") ti restituirà:valore1,valore2,valore3,.....valoren con:arrHobby = Split(strHobby,",") avrai trasformato il contenuto delle checkbox in un array. per ciclare l'estrazione: FOR i = 0 TO UBound(arrHobby) codice da iterareNEXT Ciao
For each x in Request.form if (Left(x,5)="hobby") then Response.write(Request.form(""&x&"")) end if Next
for i=1 to 8 if Replace(Request("hobby" & i),"'","''") <> "" then rs.addnew rs("Nome")=Replace(Request("nome"),"'","''") rs("hobby")=Replace(Request("hobby" & i),"'","''") rs("Datainvio")=Request("datainvio" & i) rs("Utente")=user("ID") rs.update for each x in Request.form if (Left(x,5)="hobby") then strBody = strBody & Request.form(""&x&"") end if next end if next
Torna al forum | Feed RSS