diff --git a/html/editpage.php b/html/editpage.php
index 4b0c2b41..fd05235d 100644
--- a/html/editpage.php
+++ b/html/editpage.php
@@ -51,13 +51,13 @@ if(isset($fichier)) {
if(isset($_POST['page-content'])) {
file_put_contents($fichier, nl2br($_POST['page-content']));
}
- if(isset($_POST['classification']) && isset($_POST['image']) && isset($_POST['resume']) && isset($_GET['article'])) {
+ if(isset($_POST['article-classification']) && isset($_POST['article-image']) && isset($_POST['article-resume']) && isset($_GET['article'])) {
$bdd = connect($dbhost, $dbname, $dbuser, $dbpass);
$req = $bdd->prepare("UPDATE articles SET classification = :classification, titre = :titre, resume = :resume WHERE ID = :article");
- $req->bindParam(':classification', $_POST['classification']);
- $req->bindParam(':titre', $_POST['titre']);
- $req->bindParam(':resume', $_POST['resume']);
+ $req->bindParam(':classification', $_POST['article-classification']);
+ $req->bindParam(':titre', $_POST['article-titre']);
+ $req->bindParam(':resume', $_POST['article-resume']);
$req->bindParam(':article', $_GET['article']);
if($req->execute()) {
$status = "Informations mises à jour";
@@ -137,7 +137,7 @@ if(isset($fichier)) {
$resultat = $req->fetchAll(PDO::FETCH_ASSOC);
if($resultat) {
- echo '