Hi there,
Among other differences, the id is used for client side interaction, while the name attribute is used to refer to a control's value at the server. E.g. form controls are submitted as name/value pairs where the name is the name attribute.
In case you want to figure out questions like these yourself:
http://www.google.com/#sclient=psy&hl=en&q=html+id+name
Cheers,
Imar