Keltoi
08-21-2003, 03:29 PM
I need to write an update page which will update multiple records in a
table.
In this case I need to update the quantity of any one product in a list.
So far I have the form with the variables "id" and "qty" for each product.
I just need to isolate these for use in an update command.
Here is what I have so far, this is wrong, but can anyone tell me what is right?
myStringID=Request.form("id")
myArrayID=split(myStringID,",")
myStringQty=Request.form("qty")
myArrayQty=split(myStringQty,",")
for i=0 to ubound(myArrayID)
for q=0 to ubound(myArrayQty)
'as a test
Response.Write(myArrayID(i) & " = " & myArrayQty(q) & "<br>"
Next
Next
Any help, much appreciated
table.
In this case I need to update the quantity of any one product in a list.
So far I have the form with the variables "id" and "qty" for each product.
I just need to isolate these for use in an update command.
Here is what I have so far, this is wrong, but can anyone tell me what is right?
myStringID=Request.form("id")
myArrayID=split(myStringID,",")
myStringQty=Request.form("qty")
myArrayQty=split(myStringQty,",")
for i=0 to ubound(myArrayID)
for q=0 to ubound(myArrayQty)
'as a test
Response.Write(myArrayID(i) & " = " & myArrayQty(q) & "<br>"
Next
Next
Any help, much appreciated