I need some help with GET variables - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: I need some help with GET variables (/showthread.php?tid=33097) |
I need some help with GET variables - El Forum - 08-15-2010 [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 I need some help with GET variables - El Forum - 08-16-2010 [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. I need some help with GET variables - El Forum - 08-16-2010 [eluser]Clifford James[/eluser] Yes, I do have searched the forum. Do you have a link the the post that discussed my problem? Thanks. I need some help with GET variables - El Forum - 08-16-2010 [eluser]Clifford James[/eluser] Any ideas, someone? I need some help with GET variables - El Forum - 08-16-2010 [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! |