commit 2f04fae80704cba86b7c159ad9c32671ed213b50 parent fde082fb92fec51ac0bc3933b5d04412e24aa178 Author: aelasmai <43659122+aelasmai@users.noreply.github.com> Date: Tue, 18 Dec 2018 11:34:13 -0500 Update createsurvey.php Diffstat:
M | website/createsurvey.php | | | 11 | ++++++----- |
1 file changed, 6 insertions(+), 5 deletions(-)
diff --git a/website/createsurvey.php b/website/createsurvey.php @@ -1,4 +1,10 @@ <?php include 'res/navbar.php';?> + +session_start(); + if(!isset($_SESSION['uid'])){ + header("location: login.php?user=notloggedin"); + } + ?> <html> <!-- <link rel="stylesheet" href="res/style.css"> --> <h2> Create A New Survey </h2> @@ -24,10 +30,5 @@ <button type="submit" name="submit">Create Survey</button> - <?php session_start(); - if(!isset($_SESSION['uid'])){ - header("location: login.php?user=notloggedin"); - } - ?> </form> </html>