Jump to content

[SOLVED] $_POST ['QUESTION'];


phpretard

Recommended Posts

How can I echo all posted variable in one php statement?

 

$_POST['mc_gross'];
$_POST['address_status'];
$_POST['payer_id'];
$_POST['tax'];
$_POST['address_street'];
$_POST['payment_date'];
$_POST['payment_status'];
$_POST['charset'];
$_POST['address_zip'];
$_POST['first_name'];
$_POST['address_country_code'];
$_POST['address_name'];
$_POST['notify_version'];
$_POST['custom'];"">
$_POST['payer_status'];
$_POST['business'];
$_POST['address_country'];
$_POST['address_city'];
$_POST['quantity'];
$_POST['payer_email'];
$_POST['verify_sign'];
$_POST['txn_id'];
$_POST['payment_type'];
$_POST['payer_business_name'];
$_POST['last_name'];
$_POST['address_state'];
$_POST['receiver_email'];
$_POST['receiver_id'];
$_POST['pending_reason'];
$_POST['txn_type'];
$_POST['item_name'];
$_POST['mc_currency'];
$_POST['item_number'];
$_POST['residence_country'];
$_POST['payment_gross'];
$_POST['shipping'];

 

These are all of the things that paypal gives back after payment.

 

 

Thank you!

Link to comment
Share on other sites

How can I echo all posted variable in one php statement?

 

$_POST['mc_gross'];
$_POST['address_status'];
$_POST['payer_id'];
$_POST['tax'];
$_POST['address_street'];
$_POST['payment_date'];
$_POST['payment_status'];
$_POST['charset'];
$_POST['address_zip'];
$_POST['first_name'];
$_POST['address_country_code'];
$_POST['address_name'];
$_POST['notify_version'];
$_POST['custom'];"">
$_POST['payer_status'];
$_POST['business'];
$_POST['address_country'];
$_POST['address_city'];
$_POST['quantity'];
$_POST['payer_email'];
$_POST['verify_sign'];
$_POST['txn_id'];
$_POST['payment_type'];
$_POST['payer_business_name'];
$_POST['last_name'];
$_POST['address_state'];
$_POST['receiver_email'];
$_POST['receiver_id'];
$_POST['pending_reason'];
$_POST['txn_type'];
$_POST['item_name'];
$_POST['mc_currency'];
$_POST['item_number'];
$_POST['residence_country'];
$_POST['payment_gross'];
$_POST['shipping'];

 

These are all of the things that paypal gives back after payment.

 

 

Thank you!

 

foreach ($_POST as $v) {

echo "$v <br />";

}

Link to comment
Share on other sites

Here is a decent way.

$all = <<<ENDOFTEXT;
// All variables go here
ENDOFTEXT;

echo $all;

 

-Simple and to the point, if you already have the variables written out.

 

There is a problem with the previous ones if there are other $_POST values that you do not want echoed.

Link to comment
Share on other sites

Here is a decent way.

$all = <<<ENDOFTEXT;
// All variables go here
ENDOFTEXT;

echo $all;

 

-Simple and to the point, if you already have the variables written out.

 

There is a problem with the previous ones if there are other $_POST values that you do not want echoed.

 

He's only getting return post values from PayPal.

Link to comment
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.