Results 1 to 3 of 3

Thread: [RESOLVED] What is the variable that return all variables?

  1. #1
    Andreex
    Guest

    Resolved [RESOLVED] What is the variable that return all variables?

    Let 's say I send a post form to an asp page. What is the object or the collection that gives me ALL the variables AT ONCE sent by the post method? Thank you!

  2. #2
    Addicted Member
    Join Date
    Aug 2000
    Location
    Pennsylvania, USA
    Posts
    168
    Okay, I am shooting blind here, and following logic that may be faulty.

    If you can use "Request.QueryString" to return the entire querystring, you may be able to use "Request.Form" to return the entire form. Either that, or do the following

    VB Code:
    1. dim FormItem
    2.  
    3. ' formItem is the name of the field, and
    4. ' the data would be gotten with Request.Form.Item(formItem)
    5. for each formItem in Request.Form
    6.      Response.write formItem & ":" & Request.Form.Item(formItem)
    7. next
    Wydok

    "It would appear that we have reached the limits of what it is possible to achieve with computer technology, although one should be careful with such statements, as they tend to sound pretty silly in 5 years."

    -John Von Neumann ca. 1949

  3. #3
    Addicted Member
    Join Date
    Nov 2001
    Location
    Liverpool, England
    Posts
    155
    Wydok's not wrong... if you use just request.form you get all the form data in a querystring-like format, otherwise you can use the collection method.

Posting Permissions

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



Click Here to Expand Forum to Full Width