add id when change question -> Changing a question is still not working

This commit is contained in:
Bertrand 2012-06-16 19:52:08 +02:00
commit f3af3ffc25
4 changed files with 9 additions and 5 deletions

View file

@ -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);