Login   Register  
PHP Classes
elePHPant
Icontem

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
 

Contents

Class file image Download
<?php
/*
 * Created on 04/02/2009
 *
 * To change the template for this generated file go to
 * Window - Preferences - PHPeclipse - PHP - Code Templates
 */
 
include('controller.php');
$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" />
</form>
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" />
</form>
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" />
</form>
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" />
</form>
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" />
</form>
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" />
</form>