This may be a conceptual issue.
Overview: Form has checkboxes. Click submit and get to this page to process. As this code checks the checkboxes I need a value of "SOLD" to be held in it's own variable associated to it's checkbox(of which 1 and 3 are currently checked and checkbox names are A1-A3).
Reason for putting each "SOLD" value in it's own variable is because I will later update a database with each value therefore I need each seperate value.
Thank you in advance!!
Overview: Form has checkboxes. Click submit and get to this page to process. As this code checks the checkboxes I need a value of "SOLD" to be held in it's own variable associated to it's checkbox(of which 1 and 3 are currently checked and checkbox names are A1-A3).
Code:
dim uColHldAll, uColHld1, uColHld12, uColHld3, cellID
for i=1 to 3
cellID = "A" & i
if Request.Form(cellID)="on" then
uColHldAll = "uColHld" & i '<--In run 1 should have uColHld1
Response.Write(uColHldAll & "<BR>") '<--Shows "uColHld1"
uColHldAll = "SOLD" '<--In run 1 should set uColHld1 = "SOLD"
Response.Write(uColHldAll & "<BR>") '<--Shows "SOLD"
Response.Write(uColHld1) '<--Should show me "SOLD"
end if
next
Thank you in advance!!