Welcome Guest, Not a member yet? Register   Sign In
_GET to array.
#3

[eluser]hugle[/eluser]
[quote author="xwero" date="1236865813"]set the uri protocol to path_info and in the results method you can do
Code:
parse_str($_SERVER['QUERY_STRING'],$_GET);
You don't have to use the get global you can assign it to a local variable too.[/quote]

thanks it works fine !

just one more question:

if I pass only 1 parameter for example:

/controller/function/?name=MYNAME

I get the error:
Code:
404 Page Not Found

The page you requested was not found.

but if I pass 2 parameters:
/controller/function/?name=MYNAME&last=lastname

Everything just works fine!

thank you in advance


Messages In This Thread
_GET to array. - by El Forum - 03-12-2009, 02:33 AM
_GET to array. - by El Forum - 03-12-2009, 02:50 AM
_GET to array. - by El Forum - 03-14-2009, 12:13 AM
_GET to array. - by El Forum - 03-14-2009, 02:20 AM
_GET to array. - by El Forum - 03-15-2009, 02:19 PM



Theme © iAndrew 2016 - Forum software by © MyBB