Welcome Guest, Not a member yet? Register   Sign In
Need help with PayPal URLs
#11

[eluser]pbreit[/eluser]
CodeIgniter does not support querystrings correctly without hacking. Search the forums for "querystring". There are a couple supposed solutions but I can't vouch for any working perfectly.
#12

[eluser]Akinzekeel[/eluser]
I tried enabling query-strings too and it kinda worked, but unfortunately the rest of the page was a horrible mish-mash of segment-query-urls :/

@Mat-Moo
I'm using the original PHP Code from PayPal, I just modified it so it's a CI library. I posted it here: http://pastebin.com/eSETwtsN
#13

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

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

[eluser]zbrox[/eluser]
Did you try to rewrite the url with mod_rewrite? I think it's the simplest way to handle this issue, since you'll be using CI without any hacks or dabbling with querystrings.
#15

[eluser]Akinzekeel[/eluser]
Got it working with your .htaccess solution, thanks for sharing!




Theme © iAndrew 2016 - Forum software by © MyBB