Request.Form("Field Name") Versus Request.QueryString("Field Name")

Ask a Question related to ASP, Design and Development.

  1. #1

    Default Request.Form("Field Name") Versus Request.QueryString("Field Name")

    I want to know what's the differences between
    Request.Form("Field Name") and
    Request.QueryString("Field Name")

    OR they function exactly the same, which is to return the value of the
    field??

    Thanks,
    John


    John Davis Guest

  2. Similar Questions and Discussions

    1. "Page" and "Rect" props of the Field prop in Javascript API
      Page property of the Field property in Javascript Acrobat API returns an array of pages that this field exists in. On the other hand, "rect" property...
    2. ERROR: The form field "theFile" did not contain a file.
      I'm getting this error when a user uploads a file. (I do have ENCTYPE="multipart/form-data" in the form definition.) If the user tries to upload a...
    3. Compare 2 fields & delete everything in "field 2" that occurs in "field 1"
      Is it possible to compare 2 fields and delete everything in "field 2" that also occurs in "field 1" ? FIELD1 800-555-1212 for...
    4. #25366 [NEW]: form buttons of type "image" dont send "submit" $_POST variable in IE
      From: jordanolsommer at imap dot cc Operating system: Windows XP PHP version: 4.3.2 PHP Bug Type: Variables related Bug...
    5. dr("field").toString returns "400.0000" instead of "400"
      I have just installed VS.NET 2003 on my computer. I have a project that I have been developing on VS.NET 2002. I haven't upgraded this project to...
  3. #2

    Default Re: Request.Form("Field Name") Versus Request.QueryString("Field Name")

    This is a simplistic explanation:
    If the HTTP request method is POST, the user submitted data is in the
    Request.Form() collection
    If the HTTP request method is GET, then user submitted data is in the
    Request.QueryString() collection

    However, you can still do:

    <form method="post" action="page.asp?data=value">
    <input type="text" name="txtName" value="Name">
    </form>

    and
    Request.Form("txtName") will contain "Name"
    -and-
    Request.QueryString("data") will contain "value"

    Cheers
    Ken

    "John Davis" <jrefactor@hotmail.com> wrote in message
    news:uFWBAJUZDHA.1492@TK2MSFTNGP12.phx.gbl...
    : I want to know what's the differences between
    : Request.Form("Field Name") and
    : Request.QueryString("Field Name")
    :
    : OR they function exactly the same, which is to return the value of the
    : field??
    :
    : Thanks,
    : John
    :
    :


    Ken Schaefer Guest

  4. #3

    Default Re: Request.Form("Field Name") Versus Request.QueryString("Field Name")

    "John Davis" wrote:
    >
    > I want to know what's the differences between
    > Request.Form("Field Name") and
    > Request.QueryString("Field Name")
    They refer to objects in two different collections, each of which may be present
    in a request.

    From a practical standpoint, the former captures data from forms with METHOD
    "post", and the latter with METHOD is "get".



    --
    Dave Anderson

    Unsolicited commercial email will be read at a cost of $500 per message. Use of
    this email address implies consent to these terms.


    Dave Anderson Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139