Jump to content

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.