From 3114d0fe8dde335382b75cc2de2bd307546b4341 Mon Sep 17 00:00:00 2001 From: AmarOk Date: Thu, 17 Dec 2015 10:18:57 +0100 Subject: [PATCH] when an event is added, redirect to index.php --- addEvent.php | 2 ++ databaseOperations.php | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/addEvent.php b/addEvent.php index 74ea6a8..ba2d279 100644 --- a/addEvent.php +++ b/addEvent.php @@ -1,9 +1,11 @@ $url, 'urlImage'=>$urlImage, 'contact'=>$contact)); - echo("debug"); $request->closeCursor(); + header("Location:index.php"); + exit; } catch(PDOException $e) {