I\'m creating an e-commerce site using CodeIgniter.
How should I get the query string?
I am using a Saferpay payment gateway. The gateway response will be li
Thanks to all other posters. This is what hit the spot for me:
$qs = $_SERVER['QUERY_STRING'];
$ru = $_SERVER['REQUEST_URI'];
$pp = substr($ru, strlen($qs)+1);
parse_str($pp, $_GET);
echo "";
print_r($_GET);
echo "";
Meaning, I could now do:
$token = $_GET['token'];
In the .htaccess i had to change:
RewriteRule ^(.*)$ /index.php/$1 [L]
to:
RewriteRule ^(.*)$ /index.php?/$1 [L]