title: Ajax search without "submit" button
body: <p>I have a search form:</p>
  
  <pre><code>&lt;form action="search.php" method="post" name="form" id="form" onsubmit="return false;"&gt;
          &lt;input name="search" type="text" id="search"&gt;
          &lt;input name="name" type="text" id="name"&gt;
      &lt;select name="car" id="car"&gt;
        &lt;option value="audi"&gt;AUDI&lt;/option&gt;
            &lt;option value=bmw"&gt;BMW&lt;/option&gt;
            &lt;option value="mini"&gt;MINI&lt;/option&gt;
          &lt;/select&gt;
      &lt;select name="year" id="year"&gt;
        &lt;option value="2000"&gt;2000&lt;/option&gt;
            &lt;option value="2005"&gt;2005&lt;/option&gt;
            &lt;option value="2006"&gt;2006&lt;/option&gt;
          &lt;/select&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>And search.php</p>
  
  <pre><code>&lt;?php
  $search = $_POST['search'];
  $search = addslashes($search);
  $search = htmlspecialchars($search);
  $search = stripslashes($search);
  $year = $_POST['option'];
  $year = addslashes($year);
  $year = htmlspecialchars($year);
  $year = stripslashes($year);
  if($search == '')
      exit("Enter name");
  elseif(!preg_match("/^[a-zа-я0-9]+$/ui", $search))  
      exit("Incorrectly");
  include 'dbsetting.php';
  
  $mysqli-&gt;set_charset("utf8"); 
  $query = "SELECT * FROM cars WHERE (type LIKE '%".$search."%' OR name LIKE '%".$search."%' OR class LIKE '%".$search."%') AND year = '".$year."'"; 
  </code></pre>
  
  <p>Live search works. Using AJAX code:</p>
  
  <pre><code>$(function() {
              $("#search").keyup(function(){
                  var search = $("#search").val();
  
                       $.ajax({
                          type: "POST",
                          url: "search.php",
                          data: {"search": search},
                          cache: false,                       
                          success: function(response){
                                      $("#res").html(response);
                                   }
                       });
                       return false;
              });
          });
  </code></pre>
  
  <p>input name="search" working correctly, but I can not add to search another select and more inputs. How to add to ajax code some inputs and select and how to save and add to search results in search.php?</p>
  
  <p>I'm sorry for my English.</p>