This commit is contained in:
Bertrand 2012-06-16 21:39:58 +02:00
commit 9034baa2b3
2 changed files with 28 additions and 4 deletions

View file

@ -27,6 +27,7 @@ if (isset ($_POST['send']))
}
//Check we have at least a question and an answer
/*
if (empty($question))
die("Veuillez indiquer une question !");
else if (count($answers) <= 0)
@ -40,6 +41,9 @@ if (isset ($_POST['send']))
$quest->setQuestion($question);
$quest->setAnswer($answers);
// Is this enought to change the xml ?
$file->save();
echo "File saved";
header("Location: ./confirmation.php?id=" . $quest->getId());
*/
?>