我想在我正在開發的頁面的地址簿中進行搜索。地址簿是另一頁的內容,此頁面上的地址簿的網址爲http://example.com/start.php。此通訊錄有自己的搜索字段,我將用於我的頁面。 我寫了下面的搜索表單:搜索表單的空值
<form action="http://example.com/start.php" method="post" target="_blank">
<div>
<input type="hidden" value="adress" name="cmd" />
<input id = "adressinput" name="search" type="text" title="Search in the adress book [ctrl-f]" accesskey="f" value="adress book" />
<input id="refresh" title="refreshnow" name="refresh" type="image" src="icons/Downloads/arrow-circle-single.png" class="iconbutton"/>
</div>
</form>
的問題是,當我在窗體的文本框,並且點擊該圖標refreshnow,頁面http://example.com/start.php(地址簿)後寫的東西是顯示,但這個頁面的搜索字段仍然有一個空值,當然,我沒有得到任何結果。
這不是我的第一個搜索表單。我寫了類似的表格,他們工作,所以,我不知道爲什麼它不工作。
我正在使用PHP作爲腳本語言,你是對的我不需要目標屬性,只有通過搜索才能看到更好的結果 – user2667837