Is name the same as ID HTML?
You use IDs for JavaScript manipulation. You use Names for form field submission. The two are not related. So setting both to the same value is OK, but it is not required. What is id and name in HTML input? name is the name that is used when the value is passed (in the URL …