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

-
+