Connecting Tech Pros Worldwide Help | Site Map

Input elements without names not submitted

  #1  
Old July 23rd, 2005, 11:42 AM
Csaba Gabor
Guest
 
Posts: n/a
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


  #2  
Old July 23rd, 2005, 11:42 AM
kaeli
Guest
 
Posts: n/a

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

  #3  
Old July 23rd, 2005, 11:42 AM
Mike
Guest
 
Posts: n/a

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]


  #4  
Old July 23rd, 2005, 11:42 AM
Michael Winter
Guest
 
Posts: n/a

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Asp.net Important Topics. shamirza answers 0 January 18th, 2007 05:15 AM
VB6 OR VBA & Webbrowser DOM Tiny $50 Mini Project Programmer help gunimpi answers 0 January 10th, 2007 08:55 PM
Capturing HTML form field names even when they are blank JDS answers 7 July 23rd, 2005 06:39 PM
Capturing HTML form field names even when they are blank JDS answers 7 July 17th, 2005 12:23 PM