<?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");
?>
|