//error_log("Getting skill id: " . $_POST['skill']. " -> " . $skill->name);
    if ($skill->description == null || $skill->description == "") {
        $prefix = $skill->prefix;
        if ($prefix != null || $prefix != "") {
            $return['desc'] = $provider->getPrefixDescription($prefix);
        } else {
            $return['desc'] = "No description available, sorry ...";
        }
    } else {
        $return['desc'] = $skill->description;
    }
}
//ADD TMP ACTIVE SKILL
if (isset($_POST['newTmpActSkill'])) {
    //error_log("adding active skill \"" . $_POST['newTmpSkillPrefix'] . "\": \"" . $_POST['newTmpActSkill']."\"");
    if (!$_SESSION['cc']->addSkill($_POST['newTmpActSkill'], $provider->getAptForPrefix($_POST['newTmpSkillPrefix']), EPSkill::$ACTIVE_SKILL_TYPE, EPSkill::$NO_DEFAULTABLE, $_POST['newTmpSkillPrefix'])) {
        treatCreatorErrors($return, $_SESSION['cc']->getLastError());
    }
}
//ADD TMP KNOWLEDGE SKILL
if (isset($_POST['newTmpKnoSkill'])) {
    //error_log("adding knowledge skill  \"" . $_POST['newTmpSkillPrefix'] . "\": \"" . $_POST['newTmpKnoSkill']."\"");
    if (!$_SESSION['cc']->addSkill($_POST['newTmpKnoSkill'] . " ", $provider->getAptForPrefix($_POST['newTmpSkillPrefix']), EPSkill::$KNOWLEDGE_SKILL_TYPE, EPSkill::$NO_DEFAULTABLE, $_POST['newTmpSkillPrefix'])) {
        treatCreatorErrors($return, $_SESSION['cc']->getLastError());
    }
}
//ADD NATIVE LANGUAGE SKILL
if (isset($_POST['newNatLanguageSkill'])) {
    if (!$_SESSION['cc']->addSkill($_POST['newNatLanguageSkill'], $provider->getAptForPrefix('Language'), EPSkill::$KNOWLEDGE_SKILL_TYPE, EPSkill::$DEFAULTABLE, "Language", null, true)) {
        treatCreatorErrors($return, $_SESSION['cc']->getLastError());
    }
            <br>
            <br>
            <input type="submit" value="Insert">
        </form>
        
        <p>Skill Prefix on database</p>
        <table border = "1">
          <tr>
            <th>Name</th>
            <th>Description</th>
            <th>Linked Apt</th>
            <th>Type</th>
            <th>DELETE FROM DATABASE</th>
          </tr>
          
            <?php 
foreach ($_SESSION['prefixList'] as $m) {
    echo "<tr>";
    echo "<td>" . $m . "</td>";
    echo "<td>" . $epListP->getPrefixDescription($m) . "</td>";
    echo "<td>" . $epListP->getAptForPrefix($m) . "</td>";
    echo "<td>" . $epListP->getTypeForPrefix($m) . "</td>";
    echo "<td><form action='./skillPrefix.php' method='post'><input type='hidden' name='deletePrefix' value='" . $m . "'><input type='submit' value='Delete this line'></form></td>";
    echo "</tr>";
}
?>
            
        </table>
    </body>
</html>