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
https://forums.phpfreaks.com/topic/102377-solved-_post-question/
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 />";

}

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.

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.