$loc = new Localize(OBIB_LOCALE, $tab);
require_once "../shared/header.php";
#****************************************************************************
#*  Checking for query string flag to read data from database.
#****************************************************************************
if (isset($_GET["code"])) {
    unset($_SESSION["postVars"]);
    unset($_SESSION["pageErrors"]);
    $code = $_GET["code"];
    $postVars["code"] = $code;
    include_once "../classes/Mf.php";
    include_once "../classes/MfQuery.php";
    include_once "../functions/errorFuncs.php";
    $mfQ = new MfQuery();
    $mfQ->connect();
    $mf = $mfQ->get1("member_fields", $code);
    $postVars["code"] = $mf->getCode();
    $postVars["data"] = $mf->getData();
    $mfQ->close();
} else {
    require "../shared/get_form_vars.php";
}
?>

<form name="editfieldform" method="POST" action="../admin/member_fields_edit.php">
<input type="hidden" name="code" value="<?php 
echo H($postVars["code"]);
?>
">
<table class="primary">
  <tr>