From 8337dec0931951e36eccc9fafd6b74ec228a4384 Mon Sep 17 00:00:00 2001 From: mauirixxx Date: Fri, 29 Jun 2018 11:32:31 -1000 Subject: [PATCH] get and post attempting to use both get and post requests in one shot --- search.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/search.php b/search.php index bdaa101..d9904a6 100644 --- a/search.php +++ b/search.php @@ -7,7 +7,7 @@ if (isset($_SESSION['userid']) && ($_SESSION['username'])) { $searchtype = mysqli_real_escape_string($con, $searchtype); $searchname = (isset($_POST['searchname']) ? $_POST['searchname'] : null); $searchname = mysqli_real_escape_string($con, $searchname); - $searchcollection = (isset($_POST['collectionid']) ? $_POST['collectionid'] : null); + $searchcollection = (isset($_GET['cid'], $_POST['collectionid']) ? $_POST['collectionid'] : null); $searchcollection = mysqli_real_escape_string($con, $searchcollection); if (!empty($searchname) || !empty($searchcollection)) { if ($searchtype == "name") {