Fix HTML balises order; add basic checks
This commit is contained in:
parent
3afabdf8ac
commit
ef33e787a4
@ -4,9 +4,9 @@
|
||||
<meta charset="utf8" />
|
||||
<link rel="Stylesheet" href="style.css" />
|
||||
<title>Every Questions</title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<header>
|
||||
<div id="main_title">
|
||||
<h1>Nemubot Questions</h1>
|
||||
@ -29,5 +29,4 @@
|
||||
</form>
|
||||
|
||||
</body>
|
||||
|
||||
</head>
|
||||
</html>
|
||||
|
@ -2,11 +2,18 @@
|
||||
|
||||
if (isset ($_POST['send']))
|
||||
{
|
||||
$question=$_POST['question'];
|
||||
$answer=$_POST['answer'];
|
||||
if (empty($_POST['question']) || empty($_POST['answer']))
|
||||
{
|
||||
echo "Il manque la question ou la réponse !";
|
||||
}
|
||||
else
|
||||
{
|
||||
$question = $_POST['question'];
|
||||
$answer = $_POST['answer'];
|
||||
|
||||
echo 'La question est : ' . $question . "<br/>";
|
||||
echo 'La réponse est : ' . $answer;
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
|
Reference in New Issue
Block a user