[eluser]Colin Williams[/eluser]
I'm not sure what makes generating query string links easier than segmented ones. In fact, all of CI's url functions expect segments, so I would think that would be the path of least resistance
Here's how I'd see the search function looking
Code:
function search()
{
// Do search if there was a form submitted
if (count($_POST))
{
$uri = '';
$this->input->xss_clean($_POST);
foreach($_POST as $key => $val)
{
$uri .= "$key/$val/";
}
redirect('browser/search/'. $uri);
}
// Do a search and load a view
$this->load->model('vehicle');
$data['result'] = $this->vehicle->get($this->uri->uri_to_assoc());
$this->load->view('auto_search', $data);
}
There is obviously some more logic to it, but the basic idea is there