Paul Lautman wrote:
<snip>
Basically it suggests having a submit buton script to
populate the hidden field
If a script dependent action needs to be carried out prior to the
submission of a form the form element's onsubmit handler is the most
direct and reliable place to carry out that action. Especially as many
browsers provide alternative mechanisms for triggering the submission of
a form, so any submit button may not be involved during the submission
of a form.
(which should be identified by an ID for safety).
Do you have any evidence for that strange assertion? If a hidden field
is to result in a name value pair being sent to the server (if it is to
be, in the language of the (X)HTML specification(s), "successful") then
it must have a name attribute, and traditionally, and by W3C HTML DOM
specification, named form controls are referencable by name in the form
element's - elements - collection. Indeed, in many browsers that
pre-date the W3C specification form controls cannot be referenced in
the - elements - collection by ID.
Richard.