title: Expression Engine Advanced Search - Problems searching for keyword
body: <p>I'm having a little trouble with expression engine searching! I've got a drop down form set-up that works great, however I need to add an OPTIONAL keyword field into this search form. Any ideas how i'll do this with my current code:</p>
  
  <p>Main form code:</p>
  
  <pre><code>&lt;form method="post" action="/properties/search-results/"&gt;
  
              &lt;p&gt;Keywords:&lt;/p&gt;
              &lt;input id="keywords" type="text" name="keywords"/&gt;
  
              &lt;p&gt;Town:&lt;/p&gt;
              &lt;select id="town" name="cat[]" multiple="multiple"&gt;
                  &lt;option value="" selected="selected"&gt;Any&lt;/option&gt;
                  {exp:channel:categories channel="property" style="linear" category_group="1"}
                  &lt;option value="{category_id}"&gt;{category_name}&lt;/option&gt;
                  {/exp:channel:categories}
              &lt;/select&gt;
  
              &lt;p&gt;Property Type:&lt;/p&gt;
              &lt;select id="propertyType" name="cat[]"&gt;
                  &lt;option value="" selected="selected"&gt;Any&lt;/option&gt;
                  {exp:channel:categories channel="property" style="linear" category_group="2"}
                  &lt;option value="{category_id}"&gt;{category_name}&lt;/option&gt;
                  {/exp:channel:categories}
              &lt;/select&gt;
  
              &lt;input style="margin-top:20px; width: 100px;" type="submit" name="submit" value="Search"/&gt;
          &lt;/form&gt;
  </code></pre>
  
  <p>Search-results template:</p>
  
  <pre><code>&lt;?php
  // Grab the categories selected from the $_POST
  // join them with an ampersand - we are searching for AND matches
  $cats = "";
  foreach($_POST['cat'] as $cat){
  // check we are working with a number
  if(is_numeric($cat)){
  $cats .= $cat."&amp;";
  }
  }
  // strip the last &amp; off the category string
  $cats = substr($cats,0,-1);
  ?&gt;
  
  {exp:channel:entries channel="property" dynamic="on" category="&lt;?php echo($cats);?&gt;" orderby="date" sort="asc"}
  </code></pre>
  
  <p>I need the keyword field to search in the {title} of my entries! </p>
  
  <p>Thanks for any help!</p>