Pet Peeve #77

When a website asks me for a credit card number and the text box for typing in the credit card # is limited to 16 characters. I always put spaces in so I can keep track of where I am as I glance back and forth between the credit card and the screen.

It’s a one liner in any reasonable programming language to strip space characters. Even in java it’s just:

String strippedString = ccNumber.replaceAll( “ “, “” )

How hard is that?

If you really want to make sure only 16 characters are entered on the client side, then do the right thing and put four text boxes next to one another and advance focus when the fourth number is typed into each one.
|