【发布时间】:2016-12-07 09:09:45
【问题描述】:
我有我的网站 example.com,在我的网站中我有一个指向另一个网站的 web html 表单,因此结果当前显示在另一个网站中。
我想用 PHP 或其他东西从其他网站获取结果并在我自己的网站上显示结果,问题是表单必须在 method=Post 中提交,所以我看不到任何方法来获取结果。
有什么想法吗?
这是从我的站点到目标远程站点的 html 表单
<form action="http://consultawebvehiculos.carabineros.cl/index.php"
name="form1" id="control" method="post">
<input type="hidden" name="accion" value="buscar">
<table id="SEARCH">
<tr><td class="REGISTRATION">
<input name="txtLetras" type="text" class="PLATE" maxlength="2">
</td><td class="SEP">°</td>
<td class="REGISTRATION">
<input name="txtNumeros1" type="text" class="PLATE" maxlength="2">
</td><td class="SEP">°</td>
<td class="REGISTRATION">
<input name="txtNumeros2" type="text" class="PLATE" maxlength="2">
</td></tr></table>
<input type="submit" value="GET RESULT" ></form>
【问题讨论】:
-
为什么需要从另一个网站获取
form的结果?在提交form之前,您可以访问form数据。
标签: javascript php jquery html css