I need some help with GET variables |
[eluser]Clifford James[/eluser]
Goodmorning! I'm not able to read the GET variable search from this url: http://anyshop.nl/search?search=trixie What am I doing wrong? Enabling query strings and changed the uri protocol a couple of times but I just can't get it to work. My .htaccess Code: <IfModule mod_rewrite.c> My routes: Code: $route['default_controller'] = "home_controller"; My config: Code: $config['uri_protocol'] = "AUTO"; My controller: Code: <?php
[eluser]WanWizard[/eluser]
Have you searched the forum for an answer? This issue has been discussed before. CI doesn't support GET variables out of the box. The setting 'enable_query_strings' doesn't do that, it's meant for routing using the query string instead of URI segments.
[eluser]Clifford James[/eluser]
Yes, I do have searched the forum. Do you have a link the the post that discussed my problem? Thanks.
[eluser]Clooner[/eluser]
There are many solutions to your problem. I would suggest recovering the get parameters like so http://ellislab.com/forums/viewreply/782850/. Search the forum for other solutions! |
Welcome Guest, Not a member yet? Register Sign In |