Request.Form with no ID or Name attributes

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Jeremy Fourman
    New Member
    • Oct 2006
    • 2

    Request.Form with no ID or Name attributes

    Hello,

    I am in need of parsing a page with a few text boxes and an option list. The current state of the input fields are <input type="text"> there are no id or name attributes, however the option list does have a name value. When I run this:

    Code:
    For Each Item in Request.Form
       Response.Write(Item & "=" & Request.Form(Item) )
      Next
    I recieve only the option list name and selected option value. Is there a way to parse an input that does not have an id or name so I can get the entered text?
    New to ASP so please take it easy on me.

    Many thanks,
    Jeremy
  • Jeremy Fourman
    New Member
    • Oct 2006
    • 2

    #2
    Originally posted by Jeremy Fourman
    Hello,

    I am in need of parsing a page with a few text boxes and an option list. The current state of the input fields are <input type="text"> there are no id or name attributes, however the option list does have a name value. When I run this:

    Code:
    For Each Item in Request.Form
       Response.Write(Item & "=" & Request.Form(Item) )
      Next
    I recieve only the option list name and selected option value. Is there a way to parse an input that does not have an id or name so I can get the entered text?
    New to ASP so please take it easy on me.

    Many thanks,
    Jeremy

    Solved, thanks for the help :[

    Comment

    Working...