简体   繁体   English

嵌入表单并将其发布到另一个站点

[英]Embedding a form and posting it to another site

Had a question around forms and posting data to other web sites. 对表单和将数据发布到其他网站有疑问。 The website in question has a donation form I would like to utilize - and they are serving as a fiscal sponsor for a company I work for. 有问题的网站有我要利用的捐赠表格-他们正在为我工​​作的公司提供财政赞助。 Currently we have to link to their form and guide our users on how to donate through them. 目前,我们必须链接到他们的表格,并指导我们的用户如何通过他们进行捐赠。 I want to embed their form on our site so as to skip the step of linking to their form and make it easier on our users. 我想将他们的表单嵌入我们的网站,以便跳过链接到他们的表单的步骤,从而使我们的用户更轻松。

I first started with simply copying their forms' HTML verbatim but when I click the submit button to submit a donation, it takes me to their "cart" page and there is nothing in the cart. 我首先从简单地逐字复制表单的HTML开始,但是当我单击“提交”按钮提交捐赠时,它将带我到他们的“购物车”页面,购物车中没有任何物品。

So I'm not sure what else to try 所以我不确定还有什么可以尝试的

The cart refers to an object in session. 购物车是指会话中的对象。 Simply copying the HTML will not enable the add to cart of other site. 简单地复制HTML不会启用添加到其他站点的购物车。

In this case must redirect the user to other site. 在这种情况下,必须将用户重定向到其他站点。 Or you can use an iframe for embedding the other page in your site. 或者,您可以使用iframe将其他页面嵌入网站中。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM