Basic files
This commit is contained in:
commit
3afabdf8ac
33
index.html
Normal file
33
index.html
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta charset="utf8" />
|
||||||
|
<link rel="Stylesheet" href="style.css" />
|
||||||
|
<title>Every Questions</title>
|
||||||
|
|
||||||
|
<body>
|
||||||
|
|
||||||
|
<header>
|
||||||
|
<div id="main_title">
|
||||||
|
<h1>Nemubot Questions</h1>
|
||||||
|
</div>
|
||||||
|
</header>
|
||||||
|
|
||||||
|
<form id="formulaire" method="post" action="questions.php">
|
||||||
|
<p>
|
||||||
|
<label for="question">Quelle est votre question ? </label>
|
||||||
|
<textarea id="question" name="question"
|
||||||
|
rows="10" cols="50"></textarea>
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
<label for="answer">Quelle est la réponse ? </label>
|
||||||
|
<input id="answer" name="answer" type="text" />
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
<input type="submit" name="send" value="Envoyer" />
|
||||||
|
</p>
|
||||||
|
</form>
|
||||||
|
|
||||||
|
</body>
|
||||||
|
|
||||||
|
</head>
|
12
questions.php
Executable file
12
questions.php
Executable file
@ -0,0 +1,12 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
if (isset ($_POST['send']))
|
||||||
|
{
|
||||||
|
$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