DotNetKick.com is an open-source project. Please report any bugs and let us know your great suggestions. Currently running svn revision 620 (rss)

Kick Spy!, Kick Zeitgeist and Kick Widgets

16
kicks
published 2 months, 17 days ago, submitted by SuperJason SuperJason 2 months, 17 days ago

ytechie.com — The right way to do credit card validation with the Luhn algorithm. Just as easy as regular expressions, but with stronger validation. This is a step-by-step guide to get it working in 10 minutes or less.

Add a comment 4 comments | category: | Views: 8 | Get KickIt image code
tags: | tag it

new Add a live kick counter to your blog >> liveImage

You can even customize the image by choosing your own colors, and then clicking the button below to update the preview and the html code:

  • "Kick It" text
  • "Kick It" background
  • kick count text
  • kick count background
  • border

Simply copy and paste this HTML into your blog post.


Users who kicked this story:

Comments:
Here is a VB.NET version of the Luhn algorithm (back when I had to code in VB.NET)...

http://www.dotnetkicks.com/vbnet/Credit_Card_Number_Validation_VB_Net_Function
posted by powerrush powerrush 2 months, 17 days ago
Thanks for giving me credit since you the post was inspired by my comment and not the post.
posted by jdelator jdelator 2 months, 16 days ago
It should read *since you know
posted by jdelator jdelator 2 months, 16 days ago
Well really the best way to do it is with both regex and Luhn validation. Also, the fastest way to add up digits in a number is to use modulus-9, not to convert to a string then walking the chars converting them as you go...
posted by gregbeech 2 months, 16 days ago



information Login or create an account to comment on this story
 

Sponsored Link: www.carlist.ie

Search:

Ads via The Lounge