Jump to content

[SOLVED] Varibles are not working?


joecooper

Recommended Posts

This is some varibles that i am setting:

 

$ordernumber==$_GET[txn_id];
$paymentdate==$_GET[payment_date];
$firstname==$_GET[first_name];
$lastname==$_GET[last_name];
$email==$_GET[payer_email];
$amount==$_GET[mc_gross];
$key==rand(1000000,9999999);

 

The varibles are being set from whats in the URL bar, and then $key is a random number.

 

When i do this:

 

echo "$email";

or

echo "$key";

it doesnt echo anything, but when i do this:

 

echo rand(1000000,9999999);

or

echo $_GET[txn_id];

 

it displays. i dont know whats going on?!

Link to comment
https://forums.phpfreaks.com/topic/152913-solved-varibles-are-not-working/
Share on other sites

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.