This topic is locked
[SOLVED]

 CNPJ/CPF Validation code

8/31/2009 10:46:42 AM
PHPRunner General questions
M
macastroz author

Hello Brazilian users,
Does someone here already have the Validation code for CNPJ/CPF ( a type of Brazilian SSN) that would like to share?

For somebody who would like to contribute this code is located in validate.php file.
Here is my contribution for Brazilian States, instead the US states.

Replace the following lines in validate.php file.

var arrStates = new Array('AC','AL','AM','AP','BA','CE','DF','ES','GO','MA','MG','MS','MT','PA',

'PB','PE','PI','PR','RJ','RN','RO','RR','RS','SC','SE','SP','TO');
best regards,
Marcos

<macastroz@gmail.com>

SP- Brazil