Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old July 19th, 2005, 09:53 AM
Mike
Guest
 
Posts: n/a
Default Passing parameters from one form to another

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



  #2  
Old July 19th, 2005, 09:54 AM
Peter Foti
Guest
 
Posts: n/a
Default Re: Passing parameters from one form to another

"Mike" <mike4532> wrote in message
news:OEkTxlPuDHA.2180@TK2MSFTNGP09.phx.gbl...[color=blue]
> 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[/color]
a[color=blue]
> FOR EACH command.[/color]

For Each item In Request.Forms
Response.Write( "<input type=""hidden"" name=""" & item & """ value="""
& Request.Form(item) & """>" )
Next


Hope this helps.
Regards,
Peter Foti


  #3  
Old July 19th, 2005, 09:54 AM
monkey
Guest
 
Posts: n/a
Default Re: Passing parameters from one form to another


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:
[color=blue]
>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
>
>[/color]

 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles