Add thanksConfirmation to avoid refresh
This commit is contained in:
parent
3310d76177
commit
0970c2f1d1
@ -64,46 +64,18 @@ else
|
||||
}
|
||||
else
|
||||
echo ("Error with the email");
|
||||
|
||||
header("Location: ./thanksConfirmation.php?id=" . $question->getId());
|
||||
}
|
||||
//*/
|
||||
|
||||
?>
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf8" />
|
||||
<link rel="Stylesheet" href="style.css" />
|
||||
<head>
|
||||
<meta charset="utf8" />
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<header>
|
||||
<div id="main_title">
|
||||
<a href="http://www.h2g2.com" target="_blank">
|
||||
<img src="marvin-robot_normal.png" alt="" id="banner"/>
|
||||
</a>
|
||||
<h1>Nemubot Questions</h1>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<section>
|
||||
<h2>Merci de votre participation</h2>
|
||||
<p>
|
||||
<?php
|
||||
if (!$question)
|
||||
{
|
||||
echo "La question n'existe pas.";
|
||||
}
|
||||
else
|
||||
{
|
||||
echo ("Votre question a bien été prise en compte.<br/>"
|
||||
."Un email a été envoyé à une personne du chan pour "
|
||||
."qu'elle valide votre question."
|
||||
."</p>
|
||||
<p>
|
||||
Nemubot vous remercie de l'aider à agrandir sa base de donnée
|
||||
</p>");
|
||||
}
|
||||
?>
|
||||
|
||||
</section>
|
||||
</body>
|
||||
</html>
|
||||
</html>
|
48
thanksConfirmation.php
Normal file
48
thanksConfirmation.php
Normal file
@ -0,0 +1,48 @@
|
||||
<!DOCTYPE html>
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf8" />
|
||||
<link rel="Stylesheet" href="style.css" />
|
||||
</head>
|
||||
<body>
|
||||
<header>
|
||||
<div id="main_title">
|
||||
<a href="http://www.h2g2.com" target="_blank">
|
||||
<img src="marvin-robot_normal.png" alt="" id="banner"/>
|
||||
</a>
|
||||
<h1>Nemubot Questions</h1>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<section>
|
||||
<h2>Merci de votre participation</h2>
|
||||
<p>
|
||||
<?php
|
||||
include("Question.class.php");
|
||||
include("QuestionsFile.class.php");
|
||||
|
||||
$id = $_GET['id'];
|
||||
$file = new QuestionsFile("questions.xml");
|
||||
$question = $file->get_question($id);
|
||||
|
||||
if (!$question)
|
||||
{
|
||||
echo "La question n'existe pas.";
|
||||
}
|
||||
else
|
||||
{
|
||||
echo ("Votre question a bien été prise en compte.<br/>"
|
||||
."Un email a été envoyé à une personne du chan pour "
|
||||
."qu'elle valide votre question."
|
||||
."</p>
|
||||
<p>
|
||||
Nemubot vous remercie de l'aider à agrandir sa base de donnée
|
||||
</p>");
|
||||
}
|
||||
?>
|
||||
|
||||
</section>
|
||||
</body>
|
||||
</html>
|
||||
|
@ -8,8 +8,6 @@ $id = $_GET['id'];
|
||||
$file = new QuestionsFile("questions.xml");
|
||||
$question = $file->get_question($id);
|
||||
|
||||
$message = "Question validated maddafakka";
|
||||
|
||||
?>
|
||||
|
||||
<html>
|
||||
|
Reference in New Issue
Block a user