I am trying to iterate through hidden fields that are added each time a page is reloaded. Below is the code I am using to create the hidden fields, but when I attempt to view the fields, I am only able to view the last time they were entered, not each iteration. Not sure why. Any ideas? Thanks.
i = 0
while i < count
if len(Request.Form("strCost" & i)) then
Response.Write "<td><input TYPE='hidden' NAME='strVenItemCd" & i & "'></td>"
Response.Write "<td><input TYPE='hidden' NAME='strItemDesc" & i & "'></td>"
Response.Write "<td><input TYPE='hidden' NAME='strUnits" & i & "'></td>"
Response.Write "<td><input TYPE='hidden' NAME='strUM" & i & "'></td>"
Response.Write "<td><input TYPE='hidden' NAME='strCost" & i & "'></td>"
end if
i = i + 1
wend
'Count is the current iteration.
i = 0
while i < count
if len(Request.Form("strCost" & i)) then
Response.Write "<td><input TYPE='hidden' NAME='strVenItemCd" & i & "'></td>"
Response.Write "<td><input TYPE='hidden' NAME='strItemDesc" & i & "'></td>"
Response.Write "<td><input TYPE='hidden' NAME='strUnits" & i & "'></td>"
Response.Write "<td><input TYPE='hidden' NAME='strUM" & i & "'></td>"
Response.Write "<td><input TYPE='hidden' NAME='strCost" & i & "'></td>"
end if
i = i + 1
wend
'Count is the current iteration.