getVar("frontendadmin") == 1) { if ($_SERVER['REQUEST_METHOD'] == 'POST') { if (isset($_POST) && !empty($_POST)) { # code... // Get the page id $cid = preg_replace("/[^0-9]/", "", $_POST["fieldid"]); // Get the slug name $cslug = str_replace($cid, "", $_POST["fieldid"]); // Get the value $formsuc = $jakdb->get("translations", "description", ["AND" => ["opid" => $_SESSION['opid'], "cmsid" => $cid, "cmsslug" => $cslug, "lang" => $BT_LANGUAGE]]); die(json_encode(array("status" => true, "content" => $formsuc))); } } } die(json_encode(array("status" => $formsuc))); ?>