PHP Classes

File: form.php

Recommend this page to a friend!
  Classes of M.G.Ranga Pathmasiri   cfdj   form.php   Download  
File: form.php
Role: Example script
Content type: text/plain
Description: submit form
Class: cfdj
Check submitted form values without Javascript
Author: By
Last change:
Date: 19 years ago
Size: 490 bytes
 

Contents

Class file image Download
<?php
if (isset($_POST)){
    require_once(
"formcheack.class.php");
   
// pass the unnessery form value
   
$unNessary = array('Submit', 'firstName');
   
$dError = new displayError($unNessary);
   
$displayErrorArray = $dError->init();
}
if(isset(
$_POST['Submit']) && ($_POST['Submit']) && (!$displayErrorArray)){
// get user information
   
$firstName = trim($_POST['firstName']);
   
$lastName = trim($_POST['lastName']);
}
require_once(
"form.inc.php");
?>