Welcome Guest, Not a member yet? Register   Sign In
INPUT CLASS destroys global get?
#15

[eluser]judico[/eluser]
xwero

for a get request something like http://www.example.com/sample?txt=foo&cat=bar
the sample in cited in #7

Code:
parse_str($_SERVER['QUERY_STRING'],$_GET); #from response #7
print_r($_GET);
yields

Array ( [/sample] => )

whereas something like this

Code:
$keys = explode('?', $_SERVER['REQUEST_URI']);
if(count($keys) == 2){
    print_r(explode('&', $keys[1]));
}

yields

Array ( [0] => txt=foo [1] => cat=bar )

is there something environmental like a config setting that makes your snippet yield something similar?
what's the best practice here for this type of situation?
thanks


Messages In This Thread
INPUT CLASS destroys global get? - by El Forum - 04-07-2009, 03:23 PM
INPUT CLASS destroys global get? - by El Forum - 04-07-2009, 04:15 PM
INPUT CLASS destroys global get? - by El Forum - 04-07-2009, 04:21 PM
INPUT CLASS destroys global get? - by El Forum - 04-07-2009, 04:50 PM
INPUT CLASS destroys global get? - by El Forum - 04-07-2009, 05:20 PM
INPUT CLASS destroys global get? - by El Forum - 04-07-2009, 08:54 PM
INPUT CLASS destroys global get? - by El Forum - 04-07-2009, 10:11 PM
INPUT CLASS destroys global get? - by El Forum - 04-07-2009, 11:07 PM
INPUT CLASS destroys global get? - by El Forum - 04-10-2009, 12:12 PM
INPUT CLASS destroys global get? - by El Forum - 04-10-2009, 12:15 PM
INPUT CLASS destroys global get? - by El Forum - 04-10-2009, 12:18 PM
INPUT CLASS destroys global get? - by El Forum - 04-10-2009, 12:46 PM
INPUT CLASS destroys global get? - by El Forum - 04-10-2009, 12:59 PM
INPUT CLASS destroys global get? - by El Forum - 04-10-2009, 01:01 PM
INPUT CLASS destroys global get? - by El Forum - 04-10-2009, 01:19 PM
INPUT CLASS destroys global get? - by El Forum - 04-10-2009, 01:31 PM
INPUT CLASS destroys global get? - by El Forum - 04-10-2009, 02:10 PM



Theme © iAndrew 2016 - Forum software by © MyBB