Assign Request.Form field name as variable name

J

jimt

I'm passing variables between forms via hidden input fields. I read the
variables via a for each object loop. The code is working on the redirect
page but only because I'm using a select statement to assign the values to
the appropriate field names (e.g if the second variable's name (item) is
"mapno" then the case select 2 reads mapno = request.form(field)). This
method requires that I know the order of the field names and the names of the
field names (which I've done via a debug script) in order to set up the
correct (same) field name for the receiving page.

Not an ideal method. Is there a way to grab the field/item name and use it
on the left side of the variable assignment statement (eg
request.form("item") = request.form(field))

Thanks
Jim T.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top