Hi!
Can anyone help me with this piece of code?
qty=request.form("qty")
qty=Split(qty,",")
choices = request.form("form")
choices = Split(choices, ",")
for each num in qty
if num=1 then
for each member in choices
num=1
sSQL = "INSERT into data (name, address, contact, user_name, form,qty) values ('" & name & "', '" & address & "', '" & contact & "', '" & user_name & "', '" & member & "', '" & num & "')"
connection.execute(sSQL)
next
else
for each member in choices
num=num
sSQL = "INSERT into data (form,qty) values ('" & member & "', '" & num & "')"
connection.execute(sSQL)
next
end if
next
__________________________________________________ _______________
thanx alot!