From 406e4f1c1b1beb931cfcccae48cafc5d86d12d3d Mon Sep 17 00:00:00 2001 From: WhyKorp <117651228+whykorp@users.noreply.github.com> Date: Mon, 11 Mar 2024 19:57:00 +0100 Subject: [PATCH] fix bug redirection --- ruty/add_task.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ruty/add_task.php b/ruty/add_task.php index 884ecf3..06f5562 100644 --- a/ruty/add_task.php +++ b/ruty/add_task.php @@ -15,7 +15,7 @@ if ($_SERVER["REQUEST_METHOD"] == "POST") { // Préparer et exécuter la requête SQL pour ajouter la tâche $sql = "INSERT INTO tasks (task_name) VALUES ('$taskName')"; if ($conn->query($sql) === TRUE) { - header("Location: http://whykorp.ddns.net/ruty/todo.php"); + header("Location: http://whykorp.ddns.net:8080/ruty/todo.php"); exit(); } else { echo "Erreur lors de l'ajout de la tâche : " . $conn->error;