Welcome Guest, Not a member yet? Register   Sign In
Getting CodeIgniter to work with URL parameters site,com/controller/method/?param=value
#7

[eluser]InsiteFX[/eluser]
Code:
$str_get = parse_str($_SERVER['QUERY_STRING'], $_GET);

//Remove everything before (and including)
//the question mark and then parse into $_GET array.
parse_str(substr(strrchr($_SERVER['REQUEST_URI'], "?"), 1), $_GET);
echo ' Using rebuilt $_GET array with xss protection: ' .
       $this->input->xss_clean($_GET'foo']);

InsiteFX


Messages In This Thread
Getting CodeIgniter to work with URL parameters site,com/controller/method/?param=value - by El Forum - 11-14-2010, 09:48 PM



Theme © iAndrew 2016 - Forum software by © MyBB