By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,679 Members | 2,749 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,679 IT Pros & Developers. It's quick & easy.

validate a credit card number's length and first digit input

P: 4
What script would I need to write (vb.net) to validate a credit card number's length and first digit input to a text box (i.e., Visa Length=16 digits, first digit starts with a 4)?

Thanks
Bryan
Feb 27 '07 #1
Share this Question
Share on Google+
3 Replies


RedSon
Expert 5K+
P: 5,000
Hi, is this some kind of homework assignment that you are trying to figure out? If you are really building a credit card solution for a webserver, the company you are using to process your credit cards should provide you with some kind of SDK to process those cards. Look at PayPal's developer center, they have an extensive library for interfacing with their system.
Feb 27 '07 #2

P: 4
Homework assignment- doesn't need to be fancy with check sum digits.

Thanks
Feb 27 '07 #3

RedSon
Expert 5K+
P: 5,000
The experts on this site are more than happy to help you with your problems but they cannot do your assignment/program for you. Attempt the assignment/program yourself first and post questions regarding any difficulties you have or about a particular function of the code that you don't know how to achieve.

Please read the Posting Guidelines and particularly the Coursework Posting Guidlines.

Then when you are ready post a new question in this thread.
Feb 27 '07 #4

Post your reply

Sign in to post your reply or Sign up for a free account.