I have a form on a webpage:
<?php echo form_open('/search/processing'); ?>
<input type="text" name="query" size="50" />
<input type="submit" name="1" value="1" /></br>
<input type="submit" name="2" value="2" /></br>
<input type="submit" name="3" value="3" /></br>
</form>
It goes to this controller function:
public function processing()
{
// redirects here based on user input and what submit button was pressed
}
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?