_GET array problem... - 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: _GET array problem... (/showthread.php?tid=13317) |
_GET array problem... - El Forum - 11-18-2008 [eluser]XssLab[/eluser] Hello, I have a problem with a Code: $this->input->get(); method to obtain a _GET value of url in my web site... For example, the url string is: Code: upload_form/?id=11&type=0&image_type=screenshot And my code is: Code: function upload_form() But the conditional if doesn't work! where is the problem of ->input->get method? _GET array problem... - El Forum - 11-18-2008 [eluser]Pascal Kriete[/eluser] CodeIgniter sanitizes all GET values unless you turn enable_query_strings on in the config file. You can get both clean urls and GET by setting the aforementioned setting to TRUE and using PATH_INFO for your uri_protocol (also set in the main config file). _GET array problem... - El Forum - 11-18-2008 [eluser]XssLab[/eluser] Thanks Very good! _GET array problem... - El Forum - 11-18-2008 [eluser]XssLab[/eluser] But with PATH_INFO ... the problem doesn't change... _GET array problem... - El Forum - 11-18-2008 [eluser]Pascal Kriete[/eluser] Did you also turn enable_query_strings on? _GET array problem... - El Forum - 11-18-2008 [eluser]XssLab[/eluser] Yes...and I use .htaccess file (but this is no very important...) _GET array problem... - El Forum - 11-18-2008 [eluser]XssLab[/eluser] Sorry, I have resolved my problem Thanks inparo _GET array problem... - El Forum - 11-18-2008 [eluser]Pascal Kriete[/eluser] Glad you got it sorted. For anyone that finds this in the future, could you tell us know where the hitch was? _GET array problem... - El Forum - 11-18-2008 [eluser]XssLab[/eluser] Yes, a problem with .htaccess..., the rewrite base / url doesn't work correctly |