0

我正在尝试在我的 wordpress 安装中合并一个预订小部件,除了发送数据或它没有填充到其他网站表单上之外,我一切正常。我试图发送数据的网站是一个在线预订软件:http ://www.directinn.com/demo/

这是我做表格的方式:

<form name="bookingform" action="http://www.directinn.com/demo" method="get" target="_blank">       

  <input type="text" name="date1" id="Text1" class="ftxt MyDate three columns" maxlength="10" value="" placeholder="Arrival Date"/>

  <input type="text" name="date2" id="Text2" class="ftxt MyDate three columns" maxlength="10"  value="" placeholder="Departure Date" />

  <input type="submit" name="bookingformsubmit" class="book-now" value="Book Now">

  <input type="hidden" name="arrivalDay" value="" />
  <input type="hidden" name="arrivalMonth" value="" />
  <input type="hidden" name="arrivalYear" value="" />
  <input type="hidden" name="departureDay" value="" />
  <input type="hidden" name="departureMonth" value="" />
  <input type="hidden" name="departureYear" value="" />
  <input type="hidden" name="numAdults" value="1" />

任何帮助将不胜感激 ;)

4

2 回答 2

0

您拥有的代码将向接收站点提交大量查询字符串数据。

目标站点可能会实施某种类型的跨站点发布预防措施,这会导致阻塞 - 或者他们可能会完全忽略您的查询字符串参数。

于 2013-03-01T23:39:50.860 回答
0

所以他们说如果您可以在您的页面上的表单中添加 iFrame,并且如果您将 USERNAME 例如添加到 URL,您的 USERNAME 将出现在发票上。像这样我相信:

http://www.directinn.com/iframefull.html/BOB

I do not think you can make your own form and POST to their page. I see no indication that that is possible from the link you posted of the example.

于 2013-03-03T15:50:13.273 回答