Php 发布贝宝值的问题
假设使用表单,变量通过post方法传递到返回页面,但它没有这样做,我不知道我能做些什么,因为通过Paypal网站的传输是我无法控制的 有什么想法吗 这是我的钮扣。我和另一个有同样的情况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
<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'];?>">