Form Collection

Results 1 to 2 of 2

Thread: Form Collection

  1. #1
    Join Date
    Dec 1969

    Default Form Collection

    I a have a single asp page to which numerous forms will be sending different information. At the moment the page simply loops the Request.Form collection and brings out the the name/value pairs. What I need to know is that is it possible to find out the name of the form that has just posted the data and for each of the name/value pairs to find out what type they were ie hidden, submit or text etc.<BR><BR>

  2. #2
    Join Date
    Dec 1969

    Default RE: Form Collection

    That&#039;s not possible. The only thing you can do is add a hidden field with the name of the form, or if your forms are on different pages, check from what page the post is coming (with the ServerVariables).<BR><BR>To find out if items are coming from a hidden, text or submit is also not possible. You could use prefixes in the fieldnames:<BR><BR>&#060;input type="text" name="txtField1"&#062;<BR>&#060;select name="selField2"&#062;<BR>&#060;iput type="submit" name="sbmField3"&#062;<BR><BR>Good luck!

Posting Permissions

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