Mar 7, 2002 #1 hawele Technical User Aug 23, 2001 1 US Is there a way I can use and array variable as the name of form object? Specifically the textarea and text boxes?
Is there a way I can use and array variable as the name of form object? Specifically the textarea and text boxes?
Mar 7, 2002 #2 Ovatvvon Programmer Feb 1, 2001 1,514 US Sure, would be like any variables placement: <% Dim myArr myArr = Split(Trim(Request.Form("names"),"," %> <Form action='nextPage.asp' method='post'> <input name='<%= myArr(0)%>' type='text'>Name<BR> <input name='<%= myArr(1)%>' type='text'>Email<BR> <input name='<%= myArr(2)%>' type='text'>Phone<BR> <BR> <input type='submit' value='Submit'><BR> </Form> -Ovatvvon :-Q Upvote 0 Downvote
Sure, would be like any variables placement: <% Dim myArr myArr = Split(Trim(Request.Form("names"),"," %> <Form action='nextPage.asp' method='post'> <input name='<%= myArr(0)%>' type='text'>Name<BR> <input name='<%= myArr(1)%>' type='text'>Email<BR> <input name='<%= myArr(2)%>' type='text'>Phone<BR> <BR> <input type='submit' value='Submit'><BR> </Form> -Ovatvvon :-Q