Form GET character limitations

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jptelthorst
    New Member
    • Feb 2010
    • 6

    Form GET character limitations

    So I'm creating a "tool" that takes several user entered inputs, and then, using CDOSYS, sends out a series of e-mails.

    I have one form, you enter information into it, and then that information is passed to another .html file using GET. I then use a vbscript <% url=Request.Que ryString %>
    in order to "save" all of the inputs. I then pass this variable from page to page, pulling different information each time, in order to send out an e-mail. Using CDOSYS, I have the URL of a .html & I include the variable URL so that the query strings are passed to that site, and the e-mail has the entered data.

    I hope that made sense.

    The problem is, that GET seems to crap out after about 2000 characters, and I need to be able to include more data than that in the e-mails.

    I don't have alot of programming experience, but is there a way to use POST to accomplish the same goal? I understand the POST method doesn't have the same 2000 character limit.

    Thanks very much for any help you might be able to provide.
  • drhowarddrfine
    Recognized Expert Expert
    • Sep 2006
    • 7434

    #2
    POST is for sending data. GET is for getting data. Never use GET to POST.

    Comment

    • jptelthorst
      New Member
      • Feb 2010
      • 6

      #3
      As I understand it, POST does not send the variables from the form in the URL. If I use POST to send the data, how can I tell CDOSYS what information to include in the webpage I'm sending as an e-mail if I don't have the url strings?

      Comment

      • drhowarddrfine
        Recognized Expert Expert
        • Sep 2006
        • 7434

        #4
        Then you were told wrong. POST data is sent as data1=val1&data 2=val2 etc. I know nothing about vbscript or cdosys stuff.

        Comment

        • jptelthorst
          New Member
          • Feb 2010
          • 6

          #5
          Thanks for setting me straight. Do you know the limit on the number of key-value pairs you can have?
          Last edited by jptelthorst; Mar 16 '10, 02:36 PM. Reason: typo

          Comment

          • jptelthorst
            New Member
            • Feb 2010
            • 6

            #6
            Also, when I create a form using this code:

            <form method="POST" name="testform" action="email1. asp">
            No key-value pairs are in the URL of email1.asp, even though all of the form inputs are displayed correctly. So, this doesn't correspond with what you are telling me. What am I missing?

            Comment

            • jptelthorst
              New Member
              • Feb 2010
              • 6

              #7


              using the GET method, which means that the data will be appended as query string.


              If the method is "get" - -, the user agent takes the value of action, appends a ? to it, then appends the form data set, encoded using the application/x-www-form-urlencoded content type. The user agent then traverses the link to this URI. In this scenario, form data are restricted to ASCII codes.

              If the method is "post" --, the user agent conducts an HTTP post transaction using the value of the action attribute and a message created according to the content type specified by the enctype attribute.

              Comment

              • drhowarddrfine
                Recognized Expert Expert
                • Sep 2006
                • 7434

                #8
                Perhaps I misunderstood you then, and I didn't re-read your post, but the key/value pairs are not sent in the url but through the http headers.

                Comment

                Working...