Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

using array as a name to a html form object

Status
Not open for further replies.

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?

 
Sure, would be like any variables placement:

<%
Dim myArr
myArr = Split(Trim(Request.Form(&quot;names&quot;)),&quot;,&quot;)
%>
<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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top