S
sean
HI There,
I am trying to loop through a form collection, each of the form textfields
has a different index number but the same name. What's the easiest way for
me to get the values from each one? I have tried the following but it's not
working at all,could somone help me out with the syntax please?
Sean - thanks in advance foryour answer.
Request("productid" & i).count
<INPUT type='hidden' NAME='productid1' ID='productid1'
value="3TTT:C4XXN23222">
<INPUT type='hidden' NAME='productid2' ID='productid2'
value="3TTT:C4XXN232">
<INPUT type='hidden' NAME='productid3' ID='productid3' value="3TTT:C4XXN23">
i=0
for i = 1 to Request("productid").count
strOption = Request("productid")(i)
next
I am trying to loop through a form collection, each of the form textfields
has a different index number but the same name. What's the easiest way for
me to get the values from each one? I have tried the following but it's not
working at all,could somone help me out with the syntax please?
Sean - thanks in advance foryour answer.
Request("productid" & i).count
<INPUT type='hidden' NAME='productid1' ID='productid1'
value="3TTT:C4XXN23222">
<INPUT type='hidden' NAME='productid2' ID='productid2'
value="3TTT:C4XXN232">
<INPUT type='hidden' NAME='productid3' ID='productid3' value="3TTT:C4XXN23">
i=0
for i = 1 to Request("productid").count
strOption = Request("productid")(i)
next