Hi,
I was wondering if there is a way to create a do while loop that would get the name of each field in a form, and use that name to determine which database column to write to... Doesn't have to be a do while. Any method would be great.
Rather than having a processing page that reads:
rs.addnew
rs("field1") = request.form("field1")
rs("field2") = request.form("field2")
rs("field3") = request.form("field3")
etc.
my thought was to have some kind of loop read through the form, and create the code above dynamically. Thus having an include that could be dropped into any processing page instead of manually writing the processing code for really long forms.
Is this possible?
Thanks,
Dan
I was wondering if there is a way to create a do while loop that would get the name of each field in a form, and use that name to determine which database column to write to... Doesn't have to be a do while. Any method would be great.
Rather than having a processing page that reads:
rs.addnew
rs("field1") = request.form("field1")
rs("field2") = request.form("field2")
rs("field3") = request.form("field3")
etc.
my thought was to have some kind of loop read through the form, and create the code above dynamically. Thus having an include that could be dropped into any processing page instead of manually writing the processing code for really long forms.
Is this possible?
Thanks,
Dan