Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/url/2.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
Forms 如何将html表单转换为url_Forms_Url - Fatal编程技术网

Forms 如何将html表单转换为url

Forms 如何将html表单转换为url,forms,url,Forms,Url,我正在创建将客户发送到托管支付系统的按钮。在这种情况下,将在测试模式下使用authorize.net简单签出按钮 <form name="PrePage" method = "post" action = "https://Simplecheckout.authorize.net/payment/CatalogPayment.aspx"> <input type = "hidden" name = "LinkId" value ="8a40541d-2f0f-4bfe-a1e8

我正在创建将客户发送到托管支付系统的按钮。在这种情况下,将在测试模式下使用authorize.net简单签出按钮

<form name="PrePage" method = "post" action = "https://Simplecheckout.authorize.net/payment/CatalogPayment.aspx"> <input type = "hidden" name = "LinkId" value ="8a40541d-2f0f-4bfe-a1e8-397292f5dee5" /> <input type = "image" src ="//content.authorize.net/images/buy-now-gold.gif" /> </form>

我做错了什么?

不同之处在于您使用的是GET方法而不是POST方法。 当您在查询字符串中包含数据(URL中?之后的内容)时,您使用的是GET方法。 如果您有一个表单,您可以指定使用POST(在代码示例中也是如此)。在此设置中,数据以不同的方式传输。不在查询字符串中

见:


可能您的服务器没有处理,只有POST方法,因此GET请求无法工作。

不同之处在于您使用的是GET方法而不是POST方法。 当您在查询字符串中包含数据(URL中?之后的内容)时,您使用的是GET方法。 如果您有一个表单,您可以指定使用POST(在代码示例中也是如此)。在此设置中,数据以不同的方式传输。不在查询字符串中

见:

可能您的服务器没有处理,只有POST方法,所以GET请求无法工作

https://Simplecheckout.authorize.net/payment/CatalogPayment.aspx/?LinkId=8a40541d%2D2f0f%2D4bfe%2Da1e8%2D3d397292f5dee5