Which HTML form controls are actually submitted?
A browser does not submit a copy of every visible control. HTML 4.01 defines a set of successful controls, and the server receives their names and current values. A missing parameter can therefore be normal form behaviour.
Use names for the submitted data
The name attribute supplies the field name in the request. An id associates labels and identifies an element in the document; it does not replace name. An unchecked checkbox is absent, not a value of zero. Only the selected radio button contributes its value. Define how the application represents an absent optional choice instead of treating every omission as a transport failure.
Do not trust disabled or hidden fields
Disabled controls are not submitted. A named read-only text control can be submitted, but read-only status is a browser convenience, not protection against alteration. Hidden values can also be changed by the requester. Recover prices, account ownership and permissions from trusted server data rather than accepting them because the form did not offer an editing box.
Test the payload as well as the page
Use GET for a retrieval such as a search and POST for an operation that changes stored data. Neither choice supplies encryption. Submit the form with each checkbox combination, with no optional choices and by pressing Enter in a text field. Do not depend on receiving one particular submit button’s value in every browser interaction. Check repeated field names according to the server framework’s parsing rules.
Validate the final request independently of the rendered form. Log field presence during testing without recording passwords or complete private messages.