470,636 Members | 1,601 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,636 developers. It's quick & easy.

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
Jul 23 '05 #1
3 1089
In article <40******@andromeda.datanet.hu>, ne**@CsabaGabor.com
enlightened us with...
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 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

Jul 23 '05 #2
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" <ne**@CsabaGabor.com> wrote in message
news:40******@andromeda.datanet.hu...
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

Jul 23 '05 #3
On Tue, 4 May 2004 12:45:03 -0500, kaeli <ti******@NOSPAM.comcast.net>
wrote:
In article <40******@andromeda.datanet.hu>, ne**@CsabaGabor.com
enlightened us with...
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 is standard, documented behavior.


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.******@blueyonder.co.invalid (replace ".invalid" with ".uk" to reply)
Jul 23 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.

By using this site, you agree to our Privacy Policy and Terms of Use.