php probleme on validaion page
This commit is contained in:
parent
25f8396455
commit
a1c1244e14
3 changed files with 20 additions and 14 deletions
|
@ -10,6 +10,9 @@ include("Question.class.php");
|
|||
include("QuestionsFile.class.php");
|
||||
|
||||
|
||||
// Change this variable depending on the server
|
||||
$validationAddress = "http://178.170.101.82/~Cccompany/nemubot_askweb/validation.php?id=";
|
||||
|
||||
if (isset ($_POST['send']))
|
||||
{
|
||||
//Gets parameters: course, question and answers
|
||||
|
@ -57,7 +60,8 @@ if (isset ($_POST['send']))
|
|||
$to = "bertrand.cournaud@gmail.com";
|
||||
$subject = "[Nemubot] Validation d'une question";
|
||||
$headers = "From: Nemubot <bot@nemunai.re>";
|
||||
$message = "Bonjour,\n";
|
||||
$message = 'Bonjour,\n Adresse de validation:
|
||||
$validationAddress . $quest->getId()';
|
||||
|
||||
if (mail($to, $subject, $message, $headers))
|
||||
{
|
||||
|
@ -106,8 +110,8 @@ else
|
|||
</p>
|
||||
<p>
|
||||
URL de validation:<br/>
|
||||
<a href='http://178.170.101.82/~Cccompany/nemubot_askweb/validation.php?id=
|
||||
<?php echo $quest->getId() ?>'>Valider la question</a>
|
||||
<a href=<?php echo
|
||||
$validationAddress . $quest->getId() ?>>Valider la question</a>
|
||||
</p>
|
||||
|
||||
</body>
|
||||
|
|
Reference in a new issue