Sfoglia il codice sorgente

get and post

attempting to use both get and post requests in one shot
development
mauirixxx 7 anni fa
parent
commit
8337dec093
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. +1
    -1
      search.php

+ 1
- 1
search.php Vedi File

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


Caricamento…
Annulla
Salva