What is the difference between the id and name attributes? They both seem to serve the same purpose of providing an identifier.
id
name
I would lik
The way I think about it and use it is simple:
id is used for CSS and JavaScript/jQuery (has to be unique in a page)
name is used for form handling in PHP when a form is submitted via HTML (has to be unique in a form - to some extent, see Paul's comment below)