Home } Forms } Credit Card Validation



Validates a credit card number the user enters based on the rules of that card such as the value of first digit, the number of digits, as well as several other computations. Useful for online order form validation. Note: Although this form does not capture your credit card information, if you do not feel comfortable entering your credit card number to test this script, please DO NOT !
Note: Internet.com Corp. and The JavaScript Source are not responsible for the use, misuse, or abuse of this Credit Card Validation JavaScript program. No sensitive information is collected by the JavaScript demonstration on this page.

However, if you do not feel comfortable entering your personal credit
card information to test this script, we ask that you DO NOT ENTER IT !



Card Number:
Card Type:
Expiration Date: Month Year (Range: 1997~2020)

The JavaScript Source: Forms: Credit Card Validation

Simply click inside the window below, use your cursor to highlight the script, and copy (type Control-c or Apple-c) the script into a new file in your text editor (such as Note Pad or Simple Text) and save (Control-s or Apple-s). The script is yours!!!

    

Did you use this script?  Do you like this site?  Please link to us!

Add a comment, suggestion, or correction
[For questions about usage, consult the Notes tab above or visit the JavaScript forum. Do not include more than two (2) lines of code in your comments. If you have suggestions or corrections, you can submit them to us.]

    
   
       
[optional]
 
[optional]

   

Comments feed Comment Feed RSS 2.0

1. From: sujith
help
04/08/2009 07:54:05

pla help me how it work with all digit recoganization i check it with a real credit card it displys valid and change ina single digit gives not valid how it posible with out any connetin wth web validation?

Sign up for the JavaScript Weekly

internet.com Privacy Policy
We'll send this script to you!

(just click "Send it!" once!)

internet.commediabistro.comJusttechjobs.comGraphics.com

Search:

WebMediaBrands Corporate Info

Legal Notices, Licensing, Reprints, Permissions, Privacy Policy.
Advertise | Newsletters | Shopping | E-mail Offers | Freelance Jobs