When using the xhtml1-transitional.dtd doctype, collecting a credit card number with the following HTML
xhtml1-transitional.dtd
Using a random 'name' attribute works for me.
I reset the name attribute when sending the form so you can still access it by name when the form is sent. (using the id attribute to store the name)