Mar 7, 2002 #1 hawele Technical User Joined Aug 23, 2001 Messages 1 Location 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 Joined Feb 1, 2001 Messages 1,514 Location 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