diff options
| -rw-r--r-- | page.html | 2 | ||||
| -rw-r--r-- | page.php | 8 |
2 files changed, 5 insertions, 5 deletions
@@ -21,7 +21,7 @@ <h1 id="titre">Système d'exploitation</h1> <div> <strong>Questionnaire</strong> - <form action="page.php" method="post"> + <form action="page.php"> <p class="formulaire"> Votre nom :<input type="text" name="nom"> </p> @@ -7,13 +7,13 @@ <body> <div> <?php - if (isset($_POST['nom'])) + if (isset($_GET['nom'])) { - echo "<p>Merci ".$_POST['nom']." !</p>"; + echo "<p>Merci ".$_GET['nom']." !</p>"; } - if (isset($_POST['os'])) + if (isset($_GET['os'])) { - echo "<p>Votre OS favori est ".$_POST['os']." !</p>"; + echo "<p>Votre OS favori est ".$_GET['os']." !</p>"; } if(isset($_COOKIE['date'])) { |
