![]() |
Problem with URI and pass String Variables with GET... - 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: Problem with URI and pass String Variables with GET... (/showthread.php?tid=41309) |
Problem with URI and pass String Variables with GET... - El Forum - 05-04-2011 [eluser]Parker Lewis[/eluser] Ok. This is my first post... I didn't found out a solution for my problem in google.. As u know, the uri in codeigniter handle class, function and variables in this way: ww.myblog.com/class/function/variable1/variable2 I have to pass a string that contain blank spaces... so that i have to redirect to this page ww.myblog.it/class/function/variable with blank spaces/variable2 but it takes only the first word ('variable'). In normal PHP programming if i had to pass a string variables (with blank spaces) with GET there was no problem.. I mean that I could write a href="index.php?variable1=string with blank space inside"> click </a> and it works... i mean that $_GET['variable1'] = string with blank space inside and not only string How can i manage this thing in codeigniter ? thanks in anvance... Hope to being clear... Federico Problem with URI and pass String Variables with GET... - El Forum - 05-04-2011 [eluser]Italo Domingues[/eluser] Hello. For security CodeIgniter does not allow the use of special characters and space in the url, but you can enable the query string in the configuration files located in application/config. Also read the user guide (http://ellislab.com/codeigniter/user-guide/general/urls.html) Code: /* Problem with URI and pass String Variables with GET... - El Forum - 05-04-2011 [eluser]Parker Lewis[/eluser] Thank you... this is a useful answer.. |