I wrote code for this ten or so years ago. I don't say that to brag, but to express my annoyance at every credit card form I encounter on the internet. Why do you ask me for my number and what type of card I've got?
How about just putting the form for the number first, and the let the drop-down menu for the type of card automatically select the right type---while still allowing user interaction.
The worst ones do half of each -- they tell you that you entered a Visa and didn't press the Visa button and ask you to go back and press the Visa button. Thanks.
This is a bad submission: it's trivial to get this info. Flagging. Sorry I'm also posting this comment. Top hit for "credit card number format" has all this info. http://www.merriampark.com/anatomycc.htm