$dabadeba = $_POST['dabadeba'];
$misamarti = $_POST['misamarti'];
$mobile = $_POST['mobile'];
$email = $_POST['email'];
$dawesebuleba = $_POST['txt_edu_name'];
$fakulteti = $_POST['txt_edu_faculty'];
$specialoba = $_POST['txt_edu_profession'];
$xarisxi = $_POST['txt_edu_degree'];
$periodii = $_POST['txt_edu_period'];
$enebi = $_POST['txt_lang_name'];
$skills = $_POST['txt_skill_name'];
$organizacia = $_POST['txt_work_name'];
$pozicia = $_POST['txt_work_position'];
$periodi = $_POST['txt_work_period'];
$PHPWord = new PHPWord();
$section = $PHPWord->CreateSection();
$PHPWord->addFontStyle('rStyle', array('bold' => true, 'size' => 16));
$PHPWord->addParagraphStyle('pStyle', array('align' => 'center', 'spaceAfter' => 100));
$section->addText('CV', 'rStyle', 'pStyle');
$section->addTextBreak(2);
$section->addImage($target_file, array('width' => 210, 'height' => 210, 'align' => 'center'));
$section->addTextBreak(2);
$styleTable = array('borderSize' => 6, 'borderColor' => '006699', 'cellMargin' => 80);
$styleCell = array('valign' => 'center');
$styleCellBTLR = array('valign' => 'center', 'textDirection' => PHPWord_Style_Cell::TEXT_DIR_BTLR);
$fontStyle = array('bold' => true, 'align' => 'center');
$PHPWord->addTableStyle('myOwnTableStyle', $styleTable);
$table = $section->addTable('myOwnTableStyle');
if ($name != '') {
    $table->addRow(2);
    $table->addCell(4000, $styleCell)->addText('Name', $fontStyle);