PHP Classes
elePHPant
Icontem

File: Vourto/bin/example3.php

Recommend this page to a friend!
  Classes of Mauro Junior  >  Vourto  >  Vourto/bin/example3.php  >  Download  
File: Vourto/bin/example3.php
Role: Example script
Content type: text/plain
Description: Example script
Class: Vourto
Validate request values of different types
Author: By
Last change:
Date: 6 months ago
Size: 491 bytes
 

Contents

Class file image Download
<?php

require_once "../autoload.php";

//example1.php?name=mauro

$create = Prop::exec(
   
$_GET,
    array(
"profile" => array(
       
"name" => array(
       
"minlegth" => array("value" => 4, "callback" => "Name must be at least 4 characters"),
       
"maxlegth" => array("value" => 5, "callback" => "Name must be a maximum of 11 characters"),
       
"callback" => "Name cannot be empty"
       
)
    )),
    function(){
       
header("location: example3.php?name={$_GET["name"]}");
});

echo
$create->getStd();

$create->close();