why does get append to url, "&Submit.x=42&Submit.y=10" or "submit=submit"

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • NotGiven

    #1

    why does get append to url, "&Submit.x=42&Submit.y=10" or "submit=submit"

    I changed my POST to GET and find appended to the url, the above string.
    Why and what can I do to NOT have them appended?

    Thanks.


  • Tony Marston

    #2
    Re: why does get append to url, "&Subm it.x=42&Sub mit.y=10" or "submit=su bmit"

    Change back to POST. If you know the difference between the GET method and
    the POST method you will understand why.

    --
    Tony Marston

    This is Tony Marston's web site, containing personal information plus pages devoted to the Uniface 4GL development language, XML and XSL, PHP and MySQL, and a bit of COBOL



    "NotGiven" <noname@nonegiv en.net> wrote in message
    news:jh1Uc.611$ yB.196@bignews1 .bellsouth.net. ..[color=blue]
    >I changed my POST to GET and find appended to the url, the above string.
    > Why and what can I do to NOT have them appended?
    >
    > Thanks.
    >
    >[/color]


    Comment

    • Alvaro G Vicario

      #3
      Re: why does get append to url, &quot;&amp;Subm it.x=42&amp;Sub mit.y=10&quot; or &quot;submit=su bmit&quot;

      *** NotGiven wrote/escribió (Mon, 16 Aug 2004 07:59:17 -0400):[color=blue]
      > I changed my POST to GET and find appended to the url, the above string.
      > Why and what can I do to NOT have them appended?[/color]

      It's added by browser when you submit on an <input type="image"> element, I
      believe there's nothing you can do except changing the way the form is
      submitted.


      --
      -- Álvaro G. Vicario - Burgos, Spain
      -- Questions sent to my mailbox will be billed ;-)
      --

      Comment

      • kingofkolt

        #4
        Re: why does get append to url, &quot;&amp;Subm it.x=42&amp;Sub mit.y=10&quot; or &quot;submit=su bmit&quot;

        "NotGiven" <noname@nonegiv en.net> wrote in message
        news:jh1Uc.611$ yB.196@bignews1 .bellsouth.net. ..[color=blue]
        > I changed my POST to GET and find appended to the url, the above string.
        > Why and what can I do to NOT have them appended?
        >
        > Thanks.
        >
        >[/color]

        If the URL appends "submit=sub mit" that means you have a named submit
        button. If you take away the name="submit" part out of <input type="submit"
        name="submit" value="submit"> , "submit=sub mit" will not show up in the URL.
        However if you're using <input type="image" ...>, the browser automatically
        adds two parameters when the form is submitted. Those two are
        [submit_button_n ame].x and [submit_button_n ame].y. These parameters show the
        (x,y) location of the user's mouse cursor when s/he clicked the submit
        button image. Again, I'm pretty sure you can take away the name="submit"
        attribute of the <input type="image"> tag and eliminate the problem.

        - JP



        Comment

        • kingofkolt

          #5
          Re: why does get append to url, &quot;&amp;Subm it.x=42&amp;Sub mit.y=10&quot; or &quot;submit=su bmit&quot;

          "NotGiven" <noname@nonegiv en.net> wrote in message
          news:jh1Uc.611$ yB.196@bignews1 .bellsouth.net. ..[color=blue]
          > I changed my POST to GET and find appended to the url, the above string.
          > Why and what can I do to NOT have them appended?
          >
          > Thanks.
          >
          >[/color]

          If the URL appends "submit=sub mit" that means you have a named submit
          button. If you take away the name="submit" part out of <input type="submit"
          name="submit" value="submit"> , "submit=sub mit" will not show up in the URL.
          However if you're using <input type="image" ...>, the browser automatically
          adds two parameters when the form is submitted. Those two are
          [submit_button_n ame].x and [submit_button_n ame].y. These parameters show the
          (x,y) location of the user's mouse cursor when s/he clicked the submit
          button image. Again, I'm pretty sure you can take away the name="submit"
          attribute of the <input type="image"> tag and eliminate the problem.

          - JP


          Comment

          • Michael Fesser

            #6
            Re: why does get append to url, &quot;&amp;Subm it.x=42&amp;Sub mit.y=10&quot; or &quot;submit=su bmit&quot;

            .oO(NotGiven)
            [color=blue]
            >I changed my POST to GET and find appended to the url, the above string.
            >Why[/color]

            A browser adds all successful form controls to the URL when submitting
            the form. This may include the submit-button that was used for
            submission.

            17.13.2 Successful controls
            http://www.w3.org/TR/html4/interact/...html#h-17.13.2
            [color=blue]
            >and what can I do to NOT have them appended?[/color]

            Is it a problem?

            Micha

            Comment

            • NotGiven

              #7
              Re: why does get append to url, &quot;&amp;Subm it.x=42&amp;Sub mit.y=10&quot; or &quot;submit=su bmit&quot;

              not a problem - just cumbersome to read

              "Michael Fesser" <netizen@gmx.ne t> wrote in message
              news:s0s1i0h81v rhsjtepa7v22boj m2eugbkdl@4ax.c om...[color=blue]
              > .oO(NotGiven)
              >[color=green]
              > >I changed my POST to GET and find appended to the url, the above string.
              > >Why[/color]
              >
              > A browser adds all successful form controls to the URL when submitting
              > the form. This may include the submit-button that was used for
              > submission.
              >
              > 17.13.2 Successful controls
              > http://www.w3.org/TR/html4/interact/...html#h-17.13.2
              >[color=green]
              > >and what can I do to NOT have them appended?[/color]
              >
              > Is it a problem?
              >
              > Micha[/color]


              Comment

              • Default User

                #8
                Re: why does get append to url, &quot;&amp;Subm it.x=42&amp;Sub mit.y=10&quot; or&quot;submit= submit&quot;

                NotGiven wrote:[color=blue]
                >
                > not a problem - just cumbersome to read
                >[/color]

                Why did you switch from POST to GET if you didn't understand the
                difference? It isn't like this is a big secret.

                Comment

                Working...