Hacker News new | ask | show | jobs
by ape4 4699 days ago
Perhaps existing forms make you select the type of card as an extra check.
2 comments

Not a very good reason, if you mistype a cc number it will most likely be completely invalid anyway.
I believe you can tell the type of card with a regular expression:

http://stackoverflow.com/questions/72768/how-do-you-detect-c...