[eluser]Unknown[/eluser]
Do I dump this in a PHP block at the start of this particular page that's loading w/ that URL?
Also, PayPal is returning 39 pieces of info, and I only need those 5. Any clue how to snatch those?
Thanks for your help!
[quote author="CroNiX" date="1406829653"]I'm not sure this has anything to do with form_open. So once the info is submitted to paypal, paypal redirects to your site with a url containing a query string? And you want to get the values from that query string?
Code:
$this->load->helper('url');
$parsed = parse_url(current_url(), PHP_URL_QUERY); //get just query string from current url
if ( ! empty($parsed))
{
//parse the query string into an array and store in $parts
parse_str($parsed, $parts);
print_r($parts);
}
//With your example URL it should return
array(
payer_id => 8675309,
amount => 300,
payment_type => instant,
payment_status => complete,
custom => 182
)
[/quote]