[eluser]mddd[/eluser]
I have used two ways to do that.
1. Use Javascript to handle the form. Before submitting the form, you change the form's "action" attribute, using the form's values. Something like:
Code:
(html)
<form name="myform" action="" method="post">
(your input fields here)
</form>
(javascript)
function onformsubmit(myform)
{
myform.action = '/search/result/' + myform.from.value + '/' + myform.search.value + '';
return true;
}
2. Use a forwarding mechanism. You send the form (with POST). In CodeIgniter, you rewrite the address and forward to a new page. Something like:
Code:
$url = site_url('search','result',$this->input->post('from'),$this->input->post('search'));
header($url);