add id when change question -> Changing a question is still not working
This commit is contained in:
parent
471a636641
commit
f3af3ffc25
4 changed files with 9 additions and 5 deletions
|
|
@ -2,13 +2,15 @@
|
|||
|
||||
<?php
|
||||
|
||||
//error_reporting(E_ALL);
|
||||
//error_reporting(E_ALL);
|
||||
define("FILENAME", "questions_file.nemubot");
|
||||
|
||||
|
||||
include("Question.class.php");
|
||||
include("QuestionsFile.class.php");
|
||||
|
||||
echo "id" . $_POST['id'];
|
||||
|
||||
if (isset ($_POST['send']))
|
||||
{
|
||||
//Gets parameters: course, question and answers
|
||||
|
|
@ -32,7 +34,7 @@ if (isset ($_POST['send']))
|
|||
else
|
||||
{
|
||||
$file = new QuestionsFile('questions.xml');
|
||||
$id = POST_['id'];
|
||||
$id = $_POST['id'];
|
||||
$quest = $file->get_question($id);
|
||||
$quest->setCourse($couse);
|
||||
$quest->setQuestion($question);
|
||||
|
|
|
|||
Reference in a new issue