survey_seahorse

Software Engineering Project - Fall 2018
Log | Files | Refs | README

commit 97fe8c99df60ea6aed8e04804fb3b4574f32c8b3
parent b6a03bf8e1e98c72ca54d984de79001c3d326f02
Author: aelasmai <43659122+aelasmai@users.noreply.github.com>
Date:   Tue, 18 Dec 2018 11:27:37 -0500

Update findsurvey.php
Diffstat:
Mwebsite/findsurvey.php | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/website/findsurvey.php b/website/findsurvey.php @@ -4,7 +4,9 @@ include 'res/navbar.php'; $sql = "SELECT access_code FROM survey ORDER BY RAND() LIMIT 1;"; $result = mysqli_query($connect, $sql); $rand_code = mysqli_fetch_assoc($result); -?> +if(!isset($_SESSION['uid'])){ + header("location: login.php?user=notloggedin"); + }?> <link rel="stylesheet" href="res/style.css"> <form class ="find-survey-form" action="takesurvey.php" method="POST">