Hi,
I'm building a dynamic form in ASP where the contents of the form itself is database driven. What this means is I have no idea what fields will be on the form and what the names of those fields will be. Is there any way I can loop through everything regardless of what's there and insert the values into a database? I know the code in ColdFusion:
<cfloop index="i" list="#form.fieldnames#">
<cfoutput>
#i# #evaluate("form."&"#i#"
#
<br>
</cfoutput>
</cfloop>
This gives me the name and the value of every field on the previous page, regardless of what the name is. Is there any such code in ASP that will do this?
Thanks to anyone who can help.
Peter Swanson
I'm building a dynamic form in ASP where the contents of the form itself is database driven. What this means is I have no idea what fields will be on the form and what the names of those fields will be. Is there any way I can loop through everything regardless of what's there and insert the values into a database? I know the code in ColdFusion:
<cfloop index="i" list="#form.fieldnames#">
<cfoutput>
#i# #evaluate("form."&"#i#"
<br>
</cfoutput>
</cfloop>
This gives me the name and the value of every field on the previous page, regardless of what the name is. Is there any such code in ASP that will do this?
Thanks to anyone who can help.
Peter Swanson