title: Search filter exact match
body: <p>The search plugin I'm using in Wordpress, (Relavenssi), allows the user to add <code>quotes</code> to search terms in order to search for phrases, for example "search phrase".</p>
  
  <p>How would I code it so that when the user selects a radio/check box called 'Exact Match', the <code>quotes</code> are automatically added to the search query rather than being added into the search box by the user?</p>
  
  <p>Any help greatly appreciated, S.</p>
  
  <p>Search form code below:</p>
  
  <pre><code>                  &lt;form action="&lt;?php bloginfo('home'); ?&gt;/" method="post"&gt;
                    &lt;div class="search-icon"&gt;     
                        &lt;label for="search" accesskey="4" class="hidden"&gt;Search the site&lt;/label&gt;                 
                        &lt;input type="text" name="s" id="search" value="Enter search term" onblur="this.value = this.value || this.defaultValue;" onfocus="this.value = '';" /&gt;                
                        &lt;input type="submit" name="submit" value="GO" class="s-btn" /&gt;
                        &lt;p&gt;&lt;a href="#" id="search-anchor"&gt;Search Options&lt;/a&gt;&lt;/p&gt;
                        &lt;div class="option-slide"&gt;
                        &lt;input type="radio" name="sentence" value="" checked="checked" /&gt;&lt;label&gt;All Words&lt;/label&gt;&lt;br /&gt;                          
                        &lt;input type="radio" name="sentence" value="???" /&gt;&lt;label&gt;Exact Match&lt;/label&gt;  
                        &lt;/div&gt;   
                    &lt;/div&gt;
                &lt;/form&gt;      
  </code></pre>
  
  <p><strong>Edit:</strong> Based on the answer from @Tristar Web Design below, I have now added this php code below my search form, although it doesn't work properly. It echoes out ok but isn't passing the query back. How do I pass/send the updated search query back to Wordpress?</p>
  
  <pre><code>                if(isset($_POST['s']) &amp;&amp; $_POST['sentence'] == 'exact') {
                      $_POST['s'] = '"'.get_search_query().'"';
                      echo $_POST['s'];
                  } else {
                      echo "2";
                  }   
  </code></pre>