CodeIgniter Forums
Search url issue, - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21)
+--- Thread: Search url issue, (/showthread.php?tid=36603)



Search url issue, - El Forum - 12-08-2010

[eluser]Arun Joshi[/eluser]
Hello,

I have a search form. Form action is post. When press submit the search results will appear the screen. Consider my search term is a+b .
its searching fine on the form submit. If I there is more results I have to show paging. Then how can I pass the search term to new page.
I tried
Code:
http://mysite.com/search/page/2/srch/a+b


if I pass like this it shows url disallowed characters. I checked the docs, and the solution was change permitted_uri_chars in config. Is there any other way to solve this. I dont like to fill all the charactors in the config file.

Thanks
-Arun


Search url issue, - El Forum - 12-08-2010

[eluser]pickupman[/eluser]
You can pass the search item to the user's session. Then check for the session variable and pass it to your query.