title: how to use multiple HTML text inputs to make an SQL search query
body: <p>I have a form that contains multiple html text inputs, and I'd like to use the values of these inputs to make one search query (for example I want it to look like this <code>results.php?input=value1+value2+value3</code>) I've tried, however I haven't managed to get one that queries with all the values from the 3 input fields.</p>
  
  <pre><code>$input = $_GET['input']; //this is for the text input - ignore
  $topic = $_GET['topic']; // the first select box value which works well
  $location = $_GET['location']; //the second select box value which isn't being inserted into the query
  $combined = $input . $topic . $location;
  $terms = explode(" ", $combined);
  $query = "SELECT * FROM search WHERE input='$input' AND topic ='$topic' AND location='$location' ";'
  </code></pre>