Jump to content

get variable out of a returned URL


jonnyfortis

Recommended Posts

hello, i have a url returned from a payment centre and i need to use the information to make variables out of

 

for example

 

www.website.com/cancel.php?orderID=969&currency=GBP&amount=0%2E01&PM=&ACCEPTANCE=&STATUS=1&CARDNO=&ED=&CN=&TRXDATE=06%2F03%2F13&PAYID=719527322&NCERROR=&BRAND=&IP=86%2E130%2E167%2E99&SHASIGN=8D01371831130CFADEB12345678911391FD8332D6B

 

 

so i need the 

 

$orderID

$currency

$amount

 

etc....

 

how is this done?

 

thanks in advance

Link to comment
https://forums.phpfreaks.com/topic/278715-get-variable-out-of-a-returned-url/
Share on other sites

Do you have error reporting turned on? If not, it would be wise to turn that on.

for one, you are missing semi colons. (';') on the echo's

 

and using var_dump() instead of echo is much better in cases like this.

 

 

While it's a bad idea, it's perfectly valid syntax.

 

<?php echo 'foo' ?>
<?php echo 'bar' ?>

 

 

 

foobar

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.