2011-10-18 28 views
0

我希望我的網站訪問者能夠搜索由Priority Pass公司提供的機場休息室。我創建了以下形式:使用HTML表單提交到遠程.cfm文件

<form action="http://prioritypass.com/lounges/lounge-print.cfm" method="post"> 
    <input type="text" id="print_airport_code" name="print_airport_code" value="MAN" /> 
    <input type="submit" value="Submit" /> 
</form> 

這反映他們對自己的移動搜索網站(here)的形式。但是當我提交我的表單時,它看起來不像參數被正確發佈。

任何幫助將是偉大的。謝謝。

他們網站上的表格看起來並不包含我錯過的任何字段?

+0

我試圖請求http://www.prioritypass.com/ –

回答

4

您指向錯誤的網址;發佈到/lounges/lounge-print.cfm正在生成一個HTTP重定向頭,它會破壞你的輸出。

此外,您的輸入字段的名稱不正確。使用他人的表單結果通常要求您保持所有字段名稱與其在遠程站點上的一致。

變化形式:

<form action="http://www.prioritypass.com/mobile/lounges.cfm" method="post">  
    <input id="Airport_Code" name="Airport_Code" type="text" size="10" value="MAN" /> 
    <input type="submit" value="Submit" /> 
</form> 
+0

時收到超時那十分感謝。我在兩個不同的實施方案之間穿越了我的電線,一個用於移動站點,另一個用於休息室打印站點。對不起,問一個愚蠢的問題:) – adwilk