scripter50
IS-IT--Management
I have an asp page, much of the html is dynamically generated in ASP for loops. My problem is saving the data.
The code runs like this..
How many? (Qty input box)
For i = 1 to Qty
Field 1
Field 2
Field 3
Next
For k = 1 to Field 3 Qty
Field 4
Field 5
Next
If request.form("btnOkay") = "Proceed" then
For i = 1 to Qty
sql= "insert into tbl...."
objConn.execute sql
Next
(the code works fine til here)
But how do I get the next level of loop inserted??
Thanks in advance for your help.
Scripter50
The code runs like this..
How many? (Qty input box)
For i = 1 to Qty
Field 1
Field 2
Field 3
Next
For k = 1 to Field 3 Qty
Field 4
Field 5
Next
If request.form("btnOkay") = "Proceed" then
For i = 1 to Qty
sql= "insert into tbl...."
objConn.execute sql
Next
(the code works fine til here)
But how do I get the next level of loop inserted??
Thanks in advance for your help.
Scripter50