CIiBug? Url Encode /Url Decode problem in url Query Strings |
[eluser]mindprojects[/eluser]
Thanks, but now i can see into the url something like spaces instead of plus signs! Using an input box to submit a string i have: 1)rawurlencode(a + b) => into the url i can see : a %2_B b INPUT TEXT RESULT(doing rawurldecode($this->uri->segment(x))) : a + b 2)urlencode(a + b) => into the url i can see : a+%2_B+b INPUT TEXT RESULT(doing urldecode($this->uri->segment(x))) : a b I would like to do something like in ebay: Into the searchbox type a + b: URL RESULT: =a+%2_B+b& (it uses urlencode) INPUT TEXT RESULT : a + b (do they urldecode or using GET directly ?) If i use GET,like in this thread http://ellislab.com/forums/viewthread/99570/ it works without urldecode, but they say that setting PATH INFO in your config,your app may not work on all servers. |
Welcome Guest, Not a member yet? Register Sign In |