Passing parameters from one form to another

M

Mike

Is there code that I can use to 'repeat' code.

For example:

I have a form that has about 30 fields on it. I then submit it to another
form that has about 20 fields on it. I then submit the second form to a
third and so on. During this process, I pass all of the fileds as Hidden
Fields. My code has over 200 hidden fileds in it and sometimes they get
mis-spelled or somthing. I thought that I saw something that you can tell
the page to 'repeat' certain code for all parameters on the page by using a
FOR EACH command.

Is this possible?

Mikeal
 
M

monkey

dim f
for each f in request.form
response.write "<input type=hidden name=" & f & " value=""" & request.form(f) & """>"
next

cheers, monkey
 

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

Members online

No members online now.

Forum statistics

Threads
473,763
Messages
2,569,562
Members
45,038
Latest member
OrderProperKetocapsules

Latest Threads

Top