L
lkrubner
I'm hoping I understand this bit correctly:
http://www.jibbering.com/faq/faq_notes/form_access.html
When writing HTML that conforms to a DTD that allows FORM elements to
have NAME attributes it is possible to also give the FORM element an ID
attribute that corresponds with its NAME attribute (so long as the ID
is unique on the page). The form will appear as a member of the
document.forms collection under a property name that corresponds with
the value of the NAME and ID attributes (as they are identical).
Does that mean that if I went through all my forms tonight and changed
every NAME attribute to ID, pretty much nothing would happen? My
Javascript would work the same, as if nothing had changed? And when
those forms were submitted to the server, and interacted with PHP, PHP
would find the form inputs, it doesn't matter if those inputs have ID
or NAME???
http://www.jibbering.com/faq/faq_notes/form_access.html
When writing HTML that conforms to a DTD that allows FORM elements to
have NAME attributes it is possible to also give the FORM element an ID
attribute that corresponds with its NAME attribute (so long as the ID
is unique on the page). The form will appear as a member of the
document.forms collection under a property name that corresponds with
the value of the NAME and ID attributes (as they are identical).
Does that mean that if I went through all my forms tonight and changed
every NAME attribute to ID, pretty much nothing would happen? My
Javascript would work the same, as if nothing had changed? And when
those forms were submitted to the server, and interacted with PHP, PHP
would find the form inputs, it doesn't matter if those inputs have ID
or NAME???