Login   Register  
PHP Classes
elePHPant
Icontem

File: captura.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Alisson Acioli  >  Capturing data in a simplified form post  >  captura.php  >  Download  
File: captura.php
Role: Example script
Content type: text/plain
Description: Displays the data captured.
Class: Capturing data in a simplified form post
Validate and retrieve POST values into constants
Author: By
Last change:
Date: 2 years ago
Size: 417 bytes
 

Contents

Class file image Download
<?
header
("Content-type:text/html;charset=UTF-8");

require_once(
"method.class.php");
$Post=new UnicPost($_POST);

$Post->Empty 'nome;sobrenome'//Campos obrigatórios

if($Post->CheckEmpty()){
$Post->DefineName();
/*
Aqui começa o seu código PHP
*/

echo nome."<br>";
echo 
sobrenome."<br>";
echo 
endereco."<br>";

}else{
echo 
'Você tem que preencher todos os campos do formulário!';    
}
?>