diff --git a/htdocs/index.php b/htdocs/index.php
index a40d7df4556843da3f6f3019670326b1be17ad77..5aba1279b3a52bb5b5eb94df99ce7a6c75dbf4b1 100644
--- a/htdocs/index.php
+++ b/htdocs/index.php
@@ -14,6 +14,12 @@ include("head.php");
                     <h2>Accueil</h2>
                 </header>
 
+                <?php
+                if (isset($_POST['reset'])){
+                    fill_table($bdd);
+                }
+                ?>
+
                 <p><form action="index.php" method="post">
                 <input type="hidden" name="reset"><br>
                 <input type="submit" value="Reset Database">