提交贝宝表格时的变量 [英] Variables upon submitting Paypal form

查看:82
本文介绍了提交贝宝表格时的变量的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

<form>
    <!--- paypal form --->
</form>

提交时如何通过Paypal发送数据?

How to send data thru paypal when submitting?

例如:

  1. 提交带有#ID值为"12345"的表单 并成功付款后.

  1. Upon submitting the form with an #ID value of "12345" and after paying successfully.

它将返回我的网站ThankYou.php

It will return back to my site ThankYou.php

问题:我将如何获得值12345? 或者我可以使用

Question: how will I get the value 12345? or can I use

//ThankYou.php
<?php
echo $_REQUEST["#ID"];
?>

提前谢谢!

推荐答案

PayPal允许您发布自定义值.您应该能够在表单上放置一个隐藏的表单字段值,这将使返回返回.他们的文档包含所有这些信息.

PayPal allows you to post custom values. You should be able to put a hidden form field value on your form that will make the trip back on return. Their documentation has all that information.

这可能有效:

<input type="hidden" name="custom" value="Id value" />

这篇关于提交贝宝表格时的变量的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆