I have created an array ‘GiftOnDeath(n) ’, where n = the number of gifts…
Dim GiftOnDeath()
‘do some code and collect the number of gifts ‘NumGiftsOnDeat h'
Redim GiftOnDeath(Num GiftsOnDeath)
<%for i = 1 to NumGiftsOnDeath %>
<tr><td >Gift <%response.writ e(i)%>
</td>
<td >
<input class="inputbox 50" name="GiftOnDea th(<%response.w rite(i)%>)" type="text" value='<%=reque st.querystring( "GiftOnDeath(i) ")%>' />
</td>
</tr>
<%next%>
I use a loop to generate the required number of form fields to collect gift values. Each field is given a unique name using the loop and I want to display the values entered after the submit button has been pressed, hence value='<%=reque st.querystring( "GiftOnDeath(i) ")% '>
My problem is that ‘i’ is not incrementing within the request.queryst ring script. How can I get around this?
I understand why 'i' does not increment but I can't figure out how to code 'i' so it is outside of the querystring name (if that makes sense)
Dim GiftOnDeath()
‘do some code and collect the number of gifts ‘NumGiftsOnDeat h'
Redim GiftOnDeath(Num GiftsOnDeath)
<%for i = 1 to NumGiftsOnDeath %>
<tr><td >Gift <%response.writ e(i)%>
</td>
<td >
<input class="inputbox 50" name="GiftOnDea th(<%response.w rite(i)%>)" type="text" value='<%=reque st.querystring( "GiftOnDeath(i) ")%>' />
</td>
</tr>
<%next%>
I use a loop to generate the required number of form fields to collect gift values. Each field is given a unique name using the loop and I want to display the values entered after the submit button has been pressed, hence value='<%=reque st.querystring( "GiftOnDeath(i) ")% '>
My problem is that ‘i’ is not incrementing within the request.queryst ring script. How can I get around this?
I understand why 'i' does not increment but I can't figure out how to code 'i' so it is outside of the querystring name (if that makes sense)