error on questions.php
This commit is contained in:
parent
4f23496a57
commit
829b392bca
@ -58,7 +58,7 @@ if (isset ($_POST['send']))
|
|||||||
|
|
||||||
// Get an email from the list
|
// Get an email from the list
|
||||||
|
|
||||||
echo 'Mail of user : ' . $_POST['email'] . "<br/>";
|
echo 'Mail of user : ' . $_POST['email'];
|
||||||
|
|
||||||
$file = fopen('email.txt', 'r');
|
$file = fopen('email.txt', 'r');
|
||||||
$number = fgets($file);
|
$number = fgets($file);
|
||||||
@ -77,7 +77,7 @@ if (isset ($_POST['send']))
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
echo 'Adresse mail: ' . $line . "<br/>";
|
echo 'Adresse mail: ' . $line;
|
||||||
fclose($file);
|
fclose($file);
|
||||||
|
|
||||||
/* This code works, perhaps should be placed in a method in Question class?
|
/* This code works, perhaps should be placed in a method in Question class?
|
||||||
|
@ -6,7 +6,6 @@ include("QuestionsFile.class.php");
|
|||||||
|
|
||||||
$id = $_GET['id'];
|
$id = $_GET['id'];
|
||||||
echo $id;
|
echo $id;
|
||||||
|
|
||||||
$file = new QuestionsFile("questions.xml");
|
$file = new QuestionsFile("questions.xml");
|
||||||
$question = $file->get_question($id);
|
$question = $file->get_question($id);
|
||||||
$question->print_test();
|
$question->print_test();
|
||||||
|
Reference in New Issue
Block a user