require_once "../functions/errorFuncs.php";
require_once "../classes/Localize.php";
$loc = new Localize(OBIB_LOCALE, $tab);
#****************************************************************************
#*  Checking for post vars.  Go back to form if none found.
#****************************************************************************
if (count($_POST) == 0) {
    header("Location: ../admin/member_fields_list.php");
    exit;
}
#****************************************************************************
#*  Validate data
#****************************************************************************
$mf = new Mf();
$mf->setMbrid($_POST["mbrid"]);
$_POST["mbrid"] = $mf->getMbrid();
$mf->setCode($_POST["code"]);
$_POST["code"] = $mf->getCode();
$mf->setData($_POST["data"]);
$_POST["data"] = $mf->getData();
if (!$mf->validateData()) {
    $pageErrors["data"] = $mf->getDataError();
    $_SESSION["postVars"] = $_POST;
    $_SESSION["pageErrors"] = $pageErrors;
    header("Location: ../admin/member_fields_edit_form.php");
    exit;
}
#**************************************************************************
#*  Update domain table row
#**************************************************************************
print_r($mf);