【发布时间】:2014-11-08 14:46:05
【问题描述】:
我有一个 PayPal 按钮表单,我需要从表单数据生成 返回 URL。我正在寻找有关通过以下示例完成此任务的好方法的建议:
<form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top">
<?php
$Fname = $_POST["first_name"];
$Lname = $_POST["last_name"];
?>
<input type="text" name="first_name" value="">
<input type="text" name="last_name" value="">
<?php
$fullname = $Fname . " " . $Lname;
$urlstring = "http://somedomain.com/someapp.php?fullname=" . $fullname;
?>
<input type="hidden" name="cmd" value="_s-xclick">
<input type="hidden" NAME="address_override" VALUE="1">
<input type="hidden" NAME="return" VALUE="<?php echo $urlstring; ?>">
<input type="hidden" name="hosted_button_id" value="aaabbbcccdddeee">
<input type="image" src="https://www.paypalobjects.com/en_US/GB/i/btn/btn_buynowCC_LG.gif" border="0" name="submit" alt="PayPal – The safer, easier way to pay online.">
<img alt="" border="0" src="https://www.paypalobjects.com/en_GB/i/scr/pixel.gif" width="1" height="1"></p>
</form>
有人吗?
【问题讨论】:
-
你在这里遇到什么问题??