Pārlūkot izejas kodu

get and post

attempting to use both get and post requests in one shot
development
mauirixxx pirms 7 gadiem
vecāks
revīzija
8337dec093
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. +1
    -1
      search.php

+ 1
- 1
search.php Parādīt failu

@@ -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") {


Notiek ielāde…
Atcelt
Saglabāt