This commit is contained in:
thaaoblues 2023-07-02 19:39:12 +02:00
parent ddae7f5922
commit 3834cb507d

View file

@ -29,8 +29,6 @@ if($user['perm'] < 3) {
$req = $db->prepare("INSERT INTO mots_croise(name,trouve) VALUES(?,?)"); $req = $db->prepare("INSERT INTO mots_croise(name,trouve) VALUES(?,?)");
$req->execute(array($mot,FALSE)); $req->execute(array($mot,FALSE));
}else{
echo $_POST["AJ_MOT"];
} }
if(isset($_POST["SUPP_MOT"])){ if(isset($_POST["SUPP_MOT"])){
$req = $db->prepare("DELETE FROM mots_croise WHERE id=?"); $req = $db->prepare("DELETE FROM mots_croise WHERE id=?");
@ -42,7 +40,7 @@ if($user['perm'] < 3) {
<main> <main>
<form method="POST"> <form method="POST">
<input type="text" name="mot" id="mot_input" value="" placeholder="mot à deviner" class="input_inline"> <input type="text" name="mot" id="mot_input" placeholder="mot à deviner" class="input_inline">
<input type="text" name="AJ_MOT" value="AJ_MOT" hidden> <input type="text" name="AJ_MOT" value="AJ_MOT" hidden>
<input type="submit" value="ajouter ce mot" class="submit_inline"> <input type="submit" value="ajouter ce mot" class="submit_inline">
</form> </form>