title: Forms/ submit buttons that direct to URL based on user input
body: <p>I have a form on a webpage:</p>
  
  <pre><code>&lt;?php echo form_open('/search/processing'); ?&gt;
  
  &lt;input type="text" name="query" size="50" /&gt;
  
      &lt;input type="submit" name="1" value="1" /&gt;&lt;/br&gt;
      &lt;input type="submit" name="2" value="2" /&gt;&lt;/br&gt;
      &lt;input type="submit" name="3" value="3" /&gt;&lt;/br&gt;
  
  &lt;/form&gt;
  </code></pre>
  
  <p>It goes to this controller function:</p>
  
  <pre><code>public function processing()
  {
  // redirects here based on user input and what submit button was pressed
  }
  </code></pre>
  
  <p>I'm wondering is it possible to get rid of this function and simply redirect straight from the form based on what the user has entered?</p>