From 4ff0b26b4b46708d47fba02d9671ea9bdd70eee4 Mon Sep 17 00:00:00 2001 From: Jan BELLON Date: Thu, 7 Mar 2024 02:20:16 +0000 Subject: [PATCH] Update file upload.php --- html/upload.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/html/upload.php b/html/upload.php index 58524217..006fd0fe 100644 --- a/html/upload.php +++ b/html/upload.php @@ -7,7 +7,7 @@ if(isset($_SESSION['userid']) == false) { die(); } -if(isset($_POST['title'])) { +if(isset($_POST['titre'])) { $filename = rand(100000, 999999); $destination = "../content/journal/" . $filename; $bdd = connect($dbhost, $dbname, $dbuser, $dbpass); @@ -37,7 +37,7 @@ if(isset($_POST['title'])) { - <?=$title?> +
@@ -49,9 +49,9 @@ if(isset($_POST['title'])) {
-
-
-
+
+
+
@@ -69,7 +69,7 @@ if(isset($_POST['title'])) {

Publier un article

-
+