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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Button name.values

Status
Not open for further replies.

jaygee

Technical User
Jan 20, 2001
2
GB
I'd appreciate any help on how to fill multiple HTML form button name.values from an array using a For...Next loop.
At present I'm having to code each name.value separately :-(
 
Try this:
<%

for i= 1 to n

a = a + 1

response.write &quot;<input type=submit name=cmdDelete&quot; &amp; a &amp; &quot; value=Delete>&quot;

next

%>

so the result should be:

cmdDelete1
cmdDelete2
cmdDelete3
cmdDelete4...etc.

I hope this helps. :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top