Input elements without names not submitted

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

    Input elements without names not submitted

    I just someone can confirm what I observe experimentally:
    Input elements without names (but with an id) are not
    sent to the server when the form is submitted.

    This would be useful because I have an array of them
    that I'm using on a temporary basis, and I'd rather not
    include useless traffic to the server (and deleting them
    doesn't make sense in my context).

    Csaba Gabor


  • kaeli

    #2
    Re: Input elements without names not submitted

    In article <4097d302@andro meda.datanet.hu >, news@CsabaGabor .com
    enlightened us with...[color=blue]
    > I just someone can confirm what I observe experimentally:
    > Input elements without names (but with an id) are not
    > sent to the server when the form is submitted.
    >[/color]

    This is standard, documented behavior.

    --
    --
    ~kaeli~
    A midget fortune teller who escapes from prison is a small
    medium at large.



    Comment

    • Mike

      #3
      Re: Input elements without names not submitted

      Yes that is exactly how it works. Form elements without names, or outside
      the <form></form> tags are not submitted to the server with the form post.




      "Csaba Gabor" <news@CsabaGabo r.com> wrote in message
      news:4097d302@a ndromeda.datane t.hu...[color=blue]
      > I just someone can confirm what I observe experimentally:
      > Input elements without names (but with an id) are not
      > sent to the server when the form is submitted.
      >
      > This would be useful because I have an array of them
      > that I'm using on a temporary basis, and I'd rather not
      > include useless traffic to the server (and deleting them
      > doesn't make sense in my context).
      >
      > Csaba Gabor
      >
      >[/color]


      Comment

      • Michael Winter

        #4
        Re: Input elements without names not submitted

        On Tue, 4 May 2004 12:45:03 -0500, kaeli <tiny_one@NOSPA M.comcast.net>
        wrote:
        [color=blue]
        > In article <4097d302@andro meda.datanet.hu >, news@CsabaGabor .com
        > enlightened us with...
        >[color=green]
        >> I just someone can confirm what I observe experimentally:
        >> Input elements without names (but with an id) are not
        >> sent to the server when the form is submitted.[/color]
        >
        > This is standard, documented behavior.[/color]

        Indeed. See 17.13.2 - Successful controls of the HTML 4.01 Specification:

        <URL:http://www.w3.org/TR/html401/interact/forms.html#h-17.13.2>

        Also check the definition of "control name".

        Mike

        --
        Michael Winter
        M.Winter@blueyo nder.co.invalid (replace ".invalid" with ".uk" to reply)

        Comment

        Working...