forked from rebillar/site-accueil-insa
test
This commit is contained in:
parent
ddae7f5922
commit
3834cb507d
1 changed files with 1 additions and 3 deletions
|
@ -29,8 +29,6 @@ if($user['perm'] < 3) {
|
|||
$req = $db->prepare("INSERT INTO mots_croise(name,trouve) VALUES(?,?)");
|
||||
$req->execute(array($mot,FALSE));
|
||||
|
||||
}else{
|
||||
echo $_POST["AJ_MOT"];
|
||||
}
|
||||
if(isset($_POST["SUPP_MOT"])){
|
||||
$req = $db->prepare("DELETE FROM mots_croise WHERE id=?");
|
||||
|
@ -42,7 +40,7 @@ if($user['perm'] < 3) {
|
|||
<main>
|
||||
|
||||
<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="submit" value="ajouter ce mot" class="submit_inline">
|
||||
</form>
|
||||
|
|
Loading…
Reference in a new issue