Connecting Tech Pros Worldwide Help | Site Map

Input elements without names not submitted

 
LinkBack Thread Tools Search this Thread
  #1  
Old July 23rd, 2005, 10:42 AM
Csaba Gabor
Guest
 
Posts: n/a
Default 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



  #2  
Old July 23rd, 2005, 10:42 AM
kaeli
Guest
 
Posts: n/a
Default 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, 10:42 AM
Mike
Guest
 
Posts: n/a
Default 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, 10:42 AM
Michael Winter
Guest
 
Posts: n/a
Default 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)
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,989 network members.