<?php

/*************************************************************************************************************
#Coder         : Kapil Verma
#Description : This Code is used to Manage Pages
*************************************************************************************************************/
extract($_GET);
extract($_POST);
extract($_FILES);
$obj_setting = new common();
$obj = new validation();
$formObj = new AdminCarForm();
/* Get Current Date Time Stamp */
$currentTimestamp = getCurrentTimestamp();
/*echo "<pre>";
print_r($_POST);
print_r($_FILES);
echo "</pre>";

exit;*/
if ($_SERVER['REQUEST_METHOD'] == 'POST') {
    $error = '';
    $obj->add_fields($fullName, 'req', 'Please Enter Full Name%%fullName');
    $obj->add_fields($madeYear, 'req', 'Please Enter Made Year%%madeYear');
    $obj->add_fields($madeYear, 'year', 'Please Enter Valid Year%%madeYear');
    $obj->add_fields($manufacturer, 'req', 'Please Select Manufacturer%%manufacturer');
    if ($manufacturer == "other") {
        $obj->add_fields($manufacturer_other, 'req', 'Please Enter Manufacturer%%manufacturer_other');
    }
    $obj->add_fields($carName, 'req', 'Please Enter Car Name%%carName');
    //$obj->add_fields($carName, 'alpha', 'Please Enter Valid Car Name%%carName');
<?php

/*************************************************************************************************************
#Coder         : Kapil Verma
#Description : This Code is used to Manage Pages
*************************************************************************************************************/
extract($_GET);
extract($_POST);
extract($_FILES);
$obj_setting = new common();
$obj = new validation();
$formObj = new AdminCarForm();
/* Get Current Date Time Stamp */
$currentTimestamp = getCurrentTimestamp();
/*echo "<pre>";
print_r($_POST);
print_r($_FILES);
echo "</pre>";

exit;*/
if ($_SERVER['REQUEST_METHOD'] == 'POST') {
    $error = '';
    $obj->add_fields($fullName, 'req', 'Please Enter Full Name%%fullName');
    $obj->add_fields($madeYear, 'req', 'Please Enter Made Year%%madeYear');
    $obj->add_fields($madeYear, 'year', 'Please Enter Valid Year%%madeYear');
    $obj->add_fields($manufacturer, 'req', 'Please Select Manufacturer%%manufacturer');
    if ($manufacturer == "other") {
        $obj->add_fields($manufacturer_other, 'req', 'Please Enter Manufacturer%%manufacturer_other');
    }
    $obj->add_fields($carName, 'req', 'Please Enter Car Name%%carName');
    //$obj->add_fields($carName, 'alpha', 'Please Enter Valid Car Name%%carName');