Commit e0796dfc authored by Vassouille's avatar Vassouille
Browse files

Mise à jour finale pour examen

parent dbc252a8
......@@ -16,5 +16,5 @@ if(strlen($_POST['message']) > 0)
$req = $bdd->prepare("INSERT INTO post (pseudo, message, jour, mois) VALUES(?, ?, ?, ?)");
$req->execute(array($_POST['pseudo'], $_POST['message'], $jour, $mois));
header('Location: index.php');
}else header ("Location: $_SERVER[HTTP_REFERER]" );
}else header ("Location: index.php");
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment