fix bug redirection

This commit is contained in:
WhyKorp
2024-03-11 19:57:00 +01:00
committed by GitHub
parent 16979fb649
commit 406e4f1c1b
+1 -1
View File
@@ -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;