Re: Verification number
| From: | Emil Edeholt | Date: | Thu, 24 Jan 2008 12:52:59 +0000 |
| Subject: | Re: Verification number | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-267984@lists.php.net to get a copy of this message | ||
Hi,
Thanks for your sugestions. I ended up using the Luhn algorithm. Simple but I think it will work for me.
http://en.wikipedia.org/wiki/Luhn_algorithm
Emil
George Pitcher wrote:
Emil, have you looked at the 10-digit ISBN verification, which has just been replaced by the 13-digit EAN system? It may be of use, but it needs the field to be varchar as the checkdigit may be a 'X'. Hope this helps. George