2016-12-07 55 views
0

我有我的網站example.com和我的網站我有一個web html表單到另一個網站,所以結果當前顯示在其他網站。提交表單方法發佈到我的網站的另一個網站,並獲取遠程結果

我想獲取在PHP或什麼其他網站的結果,並顯示在自己的網站上的結果,問題是,表格必須在方法所需提交=帖子,所以我沒有看到任何方式獲取結果。

有什麼想法?

這裏是從我的網站爲目標的遠程網站

<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> 
+0

爲什麼你需要得到來自其他網站'form'結果?您可以在提交表單之前訪問「表單」數據。 – guest271314

回答

0

HTML表單,你可以在 http://consultawebvehiculos.carabineros.cl/index.php使用$ _ POST [「的輸入字段的名稱」。代碼將是這樣的:

$txtLetras== $_POST['txtLetras'] ; 
echo $txtLetras ; 
+0

你能解釋一下,給我一個例子嗎?請記住,我從中獲取結果的目標網頁不是我的網站... – caradevineros

相關問題