<?php

$translated_content = $_POST['translatedcontent'];
echo $translated_content;
echo $_POST['pagepath'];
$translatorObj = new Translator();
$translatorObj->submitTranslation($translated_content, $_POST['pagepath']);
function afterSubmit()
{
    $translatorObj = new Translator();
    $translatorObj->submitTranslation($_POST['id1'], $_POST['pagepath']);
    echo "submitted Successfully";
}