Form Field Collection

Results 1 to 2 of 2

Thread: Form Field Collection

  1. #1
    Join Date
    Dec 1969

    Default Form Field Collection

    I would like to collect all of the fields in a form without specifically "calling" each field. Is this possible in ASP like it is in JavaScript with getElementByTagName()?<BR><BR>I searched the resources briefly and came up with nothing.

  2. #2
    Join Date
    Dec 1969

    Default RE: Form Field Collection

    You mean the Request.Form collection?<BR><BR>document.getElementsByTagName() is a method of the document object in the DOM - it has nothing to do with JavaScript. You can use it from client-side VBScript.<BR><BR>If you&#039;re talking about getting the form collection using server-side VBScript in ASP, then it&#039;s simple:<BR><BR>&#060;%<BR>Dim objItem<BR>For Each objItem in Request.Form<BR> Response.Write objItem & " = " & Request.Form(objItem) & "&#060;br /&#062;"<BR>Next<BR>%&#062;<BR><BR>Craig.

Posting Permissions

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