Connecting Tech Pros Worldwide Forums | Help | Site Map

Input elements without names not submitted

Csaba Gabor
Guest
 
Posts: n/a
#1: Jul 23 '05
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
Guest
 
Posts: n/a
#2: Jul 23 '05

re: Input elements without names not submitted


In article <4097d302@andromeda.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.
http://www.ipwebdesign.net/wildAtHeart
http://www.ipwebdesign.net/kaelisSpace

Mike
Guest
 
Posts: n/a
#3: Jul 23 '05

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@CsabaGabor.com> wrote in message
news:4097d302@andromeda.datanet.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]


Michael Winter
Guest
 
Posts: n/a
#4: Jul 23 '05

re: Input elements without names not submitted


On Tue, 4 May 2004 12:45:03 -0500, kaeli <tiny_one@NOSPAM.comcast.net>
wrote:
[color=blue]
> In article <4097d302@andromeda.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@blueyonder.co.invalid (replace ".invalid" with ".uk" to reply)
Closed Thread