|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
|||
|
|||
|
Processing forms with dynamically named input items
I am unsure how to process the results of a form where the name of the <input> is generated dynamically i.e.
<input name="X<%=counter%>"> or similar. How is each input then referred to in the page the form is posted to? I can't see any way to dynamically create variable names in ASP? |
|
#2
|
|||
|
|||
|
Here is an example of iterating through the request.forms collection which is what I think you're looking for.
Code:
<% dim key for each key in Request.Form response.write key & " : " & Request.Form(key) & "<BR>" next %> |
|
#3
|
|||
|
|||
|
Exactly what I was looking for, thanks Doug G.
I knew it was simple! |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > ASP Programming > Processing forms with dynamically named input items |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|