473,396 Members | 1,923 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

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 1139
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Csaba2000 | last post by:
I want to be able to programatically click on the center of an <INPUT type=image ...> element (I only care about IE 5.5+). This should work regardless of whether IE has focus. Normally you would...
1
by: Bill | last post by:
Hi. Is there any way to make form input elements inactive, ie to disable them? I've seen such a thing in VB but can't find anything in HTML/Javascript references. Thanks.
15
by: Mattia | last post by:
Hi! I have a <form> that can be submitted thruogh three buttons and I need to tell witch one was pressed when the form was submitted. I now do it with 3 <input type="submit" name="..."...
5
by: Clive Backham | last post by:
I'm having trouble with Instant Payment Notification on PayPal. One of the forms that they generate, which invokes one of my scripts, has a submit button with a blank name. The HTML fragment is...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.