?
This commit is contained in:
parent
f3af3ffc25
commit
9034baa2b3
2 changed files with 28 additions and 4 deletions
|
|
@ -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());
|
||||
*/
|
||||
?>
|
||||
Reference in a new issue