Last Updated: 27 Jun 2023
|
Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Last revision Both sides next revision | ||
front-end-tech:xhtml:id-vs.-name-in-form-fields [May 24, 2008 01:05 AM] dordal |
front-end-tech:xhtml:id-vs.-name-in-form-fields [Jun 25, 2023 07:25 PM] 110.249.202.42 removed |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | = ID vs. Name in Form Fields = | ||
+ | When creating a form field, you should give them both an '' | ||
+ | <code html> | ||
+ | < | ||
+ | <input type=' | ||
+ | <input type=' | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | This is because browsers use the '' | ||
+ | |||
+ | You should also always name your '' | ||
+ | |||
+ | Conclusion? **Always use both, make them the same string, and make that string unique in the document.** |