Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/229.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 发布贝宝值的问题_Php_Paypal_Paypal Sandbox - Fatal编程技术网

Php 发布贝宝值的问题

Php 发布贝宝值的问题,php,paypal,paypal-sandbox,Php,Paypal,Paypal Sandbox,假设使用表单,变量通过post方法传递到返回页面,但它没有这样做,我不知道我能做些什么,因为通过Paypal网站的传输是我无法控制的 有什么想法吗 这是我的钮扣。我和另一个有同样的情况 <form name="_xclick" action="https://www.sandbox.paypal.com/cgi-bin/webscr" method="post" target="_top"> <input type="hidden" name="cmd" value="_x

假设使用表单,变量通过post方法传递到返回页面,但它没有这样做,我不知道我能做些什么,因为通过Paypal网站的传输是我无法控制的

有什么想法吗

这是我的钮扣。我和另一个有同样的情况

<form name="_xclick" action="https://www.sandbox.paypal.com/cgi-bin/webscr" method="post" target="_top">
  <input type="hidden" name="cmd" value="_xclick"> 
  <input type="hidden" name="business" value="name@dom.com">
  <input type="hidden" name="currency_code" value="EUR">
  <input type="hidden" name="item_name" value="Algo">
  <input type="hidden" name="amount" value="8.00">
  <input type="hidden" name="no_shipping" value="1">
  <input type="hidden" name="item_number" value="<?php echo $_GET['id'];?>">
  <input type="hidden" name="custom" value="<?php echo $_GET['sub'];?>">

  <input type="hidden" name="return" value="http://www.web.com/ok.php"> 
  <input type="hidden" name="cancel_return" value="http://www.web.com/ko.php"> 

  <input type="image" src="http://www.paypal.com/img/btn_buynow_LG.gif" border="0" name="submit" alt="Make payments with PayPal">
</form>


您可以通过在返回页面中将变量设置为url参数来传递这些变量。像这样:

<input type="hidden" name="return" value="http://www.web.com/ok.php?id=<?php echo $_GET['id'];?>&custom=<?php echo $_GET['sub'];?>">