Welcome Guest, Not a member yet? Register   Sign In
GET Method, Query string with Clean url
#4

[eluser]TheIgniter[/eluser]
[quote author="CI_avatar" date="1283321068"]During on click of the submit button the default link will be generated above like
Code:
(mysite.com/mycontroller/myfunction/filter_by/?pays1=france&pays2=canada)
there no way we can do that.

But you may route the link
Code:
mysite.com/mycontroller/myfunction/filter_by/?pays1=france&pays2=canada
to
Code:
mysite.com/mycontroller/myfunction/filter_by/france/canada

Make a controller that will receives the get request then route it to the destination controller with rewritten URL

getcontroller.php
Code:
//code somewhat like this
header('Location: mysite.com/myfunction/filter_by/'.$this->input->get('pays1').'/'.$this->input->get('pays2'));

//please do some URL handling and manipulation to get the correct URL
[/quote]

Thanks to both of u.. So, i will stick with your suggestion ..


Messages In This Thread
GET Method, Query string with Clean url - by El Forum - 08-31-2010, 05:07 PM
GET Method, Query string with Clean url - by El Forum - 08-31-2010, 07:04 PM
GET Method, Query string with Clean url - by El Forum - 08-31-2010, 09:56 PM
GET Method, Query string with Clean url - by El Forum - 08-31-2010, 10:58 PM



Theme © iAndrew 2016 - Forum software by © MyBB