Login   Register  
PHP Classes

File: view.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Igor Herson Aquino de Franša  >  Brazilian Validations  >  view.php  >  Download  
File: view.php
Role: Example script
Content type: text/plain
Description: view with forms for test
Class: Brazilian Validations
Validate Brazilian document numbers and formats
Author: By
Last change:
Date: 5 years ago
Size: 1,582 bytes


Class file image Download
 * Created on 04/02/2009
 * To change the template for this generated file go to
 * Window - Preferences - PHPeclipse - PHP - Code Templates
$validacoes = new validacoesControllers;

<br /><br />
Ex: 632.211.247-32 ou 63221124732
<form action="" method="post">
    <input type="text" class="text" name="cpf" value="" size="20" maxlength="40" />
    <input type="submit" class="submit button" name="submitCPF" value="CPF" />
Ex: 57.389.640/0001-52 ou 57389640000152
<form action="" method="post">
    <input type="text" class="text" name="cnpj" value="" size="20" maxlength="40" />
    <input type="submit" class="submit button" name="submitCNPJ" value="CNPJ" />
Ex: 170.33259.50-4 ou 17033259504
<form action="" method="post">
    <input type="text" class="text" name="pis" value="" size="20" maxlength="40" />
    <input type="submit" class="submit button" name="submitPIS" value="PIS" />
Ex: 20/02/1983
<form action="" method="post">
    <input type="text" class="text" name="data" value="" size="20" maxlength="40" />
    <input type="submit" class="submit button" name="submitDATA" value="DATA" />
Ex: 52040-050
<form action="" method="post">
    <input type="text" class="text" name="cep" value="" size="20" maxlength="40" />
    <input type="submit" class="submit button" name="submitCEP" value="CEP" />
Ex: 5.000,00
<form action="" method="post">
    <input type="text" class="text" name="moeda" value="" size="20" maxlength="40" />
    <input type="submit" class="submit button" name="submitMOEDA" value="MOEDA" />