Form Collection

Results 1 to 2 of 2

Thread: Form Collection

  1. #1
    Join Date
    Dec 1969

    Default Form Collection

    Problem as follows :<BR>I have a 3 page application process that can start with 6 possible forms. I want to carry along the information from the first forms through a generic second form until the third and final form submits. Is it possible to loop through the form collection writing hidden html variables that have the name and value of those submitted. I can access the value but not the name. <BR><BR><BR>Dim sItem<BR>Dim strHiddenVariables<BR><BR>For Each sItem In Request.Form<BR>strHiddenVariables = "&#060;input type=hidden name=" & Request.Form (????) & " value =" & Request.Form (????) & "&#062;" & VbCrLf<BR>Next<BR><BR>&#039;then inside the form write the hidden variables<BR>Response.Write strHiddenVariables

  2. #2
    Join Date
    Dec 1969

    Default RE: Form Collection

    For Each Field in request.Form<BR>Response.Write "Value = " & Request(Field) & "&lt;br&gt;"<BR>Response.Write "Name = " & Field & "&lt;br&gt;&lt;br&gt;" <BR>Next<BR><BR>HTH.<BR>D.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts