2012年12月3日 星期一

Lab29 Lab Form and Action

1.CGI(Common Gateway Interface)意為一種連結主機端與伺服器端並且能夠存取檔案的一種介面,另外它也可根據使用者的輸入要求自動產生HTML的格式資料


2. 內容是
<form action="https://maps.google.com/maps?q=24.9586,+121.24114" method="get" name="f">
<input name="f" type="text" /><br />
<input name="send" type="submit" value="搜尋" />
</form>

結果為:




此篇參考

Q:在form裡面因為是用google的搜尋引擎(name="f"),所以一開始無法立即搜尋會先跳到google地圖首頁,最後改成google的指定變數name="q"就可以在部落格內或是html檔馬上搜尋。

沒有留言:

張貼留言