I have a page that generates form items on the fly and appends my loopcounter to each input name
i.e. <input type="text" name="name<%=loopcounter%>">
Can anyone tell me how I can access this form information on a seperate page? More specifically since this for loop generates <input> items on the fly I cannot hard code the recieving pages CStr(Request())information. It will need to be created on the fly as well.
Page 1
<% Dim count
count=3
FOR i = 1 to count %>
<tr>
<td width="22%">
<div align="right"><b>Full Name:</b></div>
</td>
<td width="27%">
<input type="text" name="name<%=i%>">
</td>
<td width="26%">
<div align="right"><b>address:</b></div>
</td>
<td width="25%">
<input type="text" name="address<%=i%>">
</td>
</tr>
<% NEXT %>
I thought about using a for loop again but I run into this problem. I am not sure how to use the loopcounter with a variable. Can someone show me how to achieve this?
Page 2
<%
for i = 1 to count
name[how do I append i here] = CStr(Request("name[how do I append i here]")
next
%>
I hope this makes sense
i.e. <input type="text" name="name<%=loopcounter%>">
Can anyone tell me how I can access this form information on a seperate page? More specifically since this for loop generates <input> items on the fly I cannot hard code the recieving pages CStr(Request())information. It will need to be created on the fly as well.
Page 1
<% Dim count
count=3
FOR i = 1 to count %>
<tr>
<td width="22%">
<div align="right"><b>Full Name:</b></div>
</td>
<td width="27%">
<input type="text" name="name<%=i%>">
</td>
<td width="26%">
<div align="right"><b>address:</b></div>
</td>
<td width="25%">
<input type="text" name="address<%=i%>">
</td>
</tr>
<% NEXT %>
I thought about using a for loop again but I run into this problem. I am not sure how to use the loopcounter with a variable. Can someone show me how to achieve this?
Page 2
<%
for i = 1 to count
name[how do I append i here] = CStr(Request("name[how do I append i here]")
next
%>
I hope this makes sense