Passing parameters from one form to another

Discussion in 'ASP General' started by Mike, Dec 2, 2003.

  1. Mike

    Mike Guest

    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
     
    Mike, Dec 2, 2003
    #1
    1. Advertising

  2. Mike

    monkey Guest

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

    cheers, monkey

    On Tue, 2 Dec 2003 10:28:47 -0700, "Mike" <mike4532> wrote:

    >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
    >
    >
     
    monkey, Dec 2, 2003
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Replies:
    5
    Views:
    778
    Steve C. Orr [MCSD, MVP, CSM, ASP Insider]
    Jun 12, 2007
  2. Paul
    Replies:
    3
    Views:
    3,685
  3. Rob R. Ainscough
    Replies:
    3
    Views:
    332
    Rob R. Ainscough
    Jun 14, 2005
  4. Robert Cohen
    Replies:
    3
    Views:
    277
    Andrew Durstewitz
    Jul 15, 2003
  5. Gabriella
    Replies:
    0
    Views:
    98
    Gabriella
    Sep 21, 2006
Loading...

Share This Page