0
我不知道如何正確表達,所以在這裏。HTML搜索欄
我在我的網頁上創建了一個搜索欄,它使用您的輸入文本來搜索另一個網站。 這是我有什麼(東西都被刪):
<form name="search" class="form-search" method="get" action="http://www.nameofwebsite.com/search.php?">
<input name="searchbynum" type="text" class="search-query input-large" onkeypress="return submitenter(this,event)">
<button type="submit" class="btn btn-primary">Search</button>
</form>
當實際的網站上進行搜索時,搜索網址如下:
http://www.nameofwebsite.com/search.php?searchbynum=search+phrase&searchbydesc=&Submit=Go
去哪兒「搜索+短語」被什麼是搜索。爲了達到這一點,
在搜索結尾處添加「& searchbydesc = & Submit = Go」需要做些什麼?