Welcome Guest, Not a member yet? Register   Sign In
Form URI
#2

[eluser]Rok Biderman[/eluser]
Well, there are 2 ways about it that seem reasonable to me. First is to do an action that takes values from the form and then redirects it. The other way I can think of is to build the action attribute using js (jquery). I think that it's all clientside so it should work.

Code:
function redirect()
    {  
    if($this->input->post('results'))
        {
          $city = $this->input->('city');
        $brand = $this->input->('brand');
        $model =$this->input->('model');
                redirect ('controller/yourfunction/' . $city . '/' . $brand . '/' . $model)
          }
    }

For js variant this link should get you started

http://www.coderanch.com/t/121860/HTML-J...orm-JQuery


Messages In This Thread
Form URI - by El Forum - 02-11-2011, 08:25 AM
Form URI - by El Forum - 02-11-2011, 09:09 AM



Theme © iAndrew 2016 - Forum software by © MyBB