/** * Process answer */ function processAnswer() { global $ilLog; /*$ilLog->write($_POST); $ilLog->write($_POST["id"]); $ilLog->write($_POST["type"]); $ilLog->write($_POST["answer"]); $ilLog->write($_GET);*/ include_once "./Services/COPage/classes/class.ilPageQuestionProcessor.php"; ilPageQuestionProcessor::saveQuestionAnswer(ilUtil::stripSlashes($_POST["type"]), ilUtil::stripSlashes($_POST["id"]), ilUtil::stripSlashes($_POST["answer"])); }