No Auto-Complete For Credit Card Input Field

Always, always set autocomplete=”off” in the input tag. For example:


Otherwise, if people have the form completion feature turned on their credit card number will be stored in plain text somewhere on the computer (in the registry, or elsewhere).

Upside
Protects people using credit-cards from public computers like in library or cyber-cafe.

Downside
Breaks XHTML validation. I agree with Pete that it is a good enough reason for writing invalid XHTML code. User safety comes first. If the standard is slow to adapt well…
It works on Internet Explorer and Mozilla group of browsers.

Link

Filed under Uncategorized |

Leave a Reply


Protected by Comment Guard Pro