2011-01-30 69 views
0

嘿傢伙,我有一個表單,並有4個按鈕可供用戶點擊提交。一個搜索所有內容,另一個搜索用戶,另一個搜索剪輯,第四個搜索主題。現在我的問題是,按鈕有name = category和value =(搜索類型),我打算做的是將用戶發送到地址欄中category = value的搜索結果頁面(使用GET方法)。這在Firefox上工作正常,但它根本無法使用谷歌瀏覽器。任何幫助?代碼如下:表單搜索提交幫助

<form method="get" action="search.php" name="search" onsubmit="return Validate();"> 
     <input type="text" class="searchit" title="Search..." name="search" id="search" /><br/> 

     <label><span> </span> <input name="submitter" type="submit" value="Search" class="searchsubmitButton" id="submitter" /></label> 
     <span class="searchfor">Search for:</span> 
     <label><span> </span> <input name="c" type="submit" value="Users" class="searchsubmitButton" id="submitter" /></label> 
     <label><span> </span> <input name="c" type="submit" value="Clips" class="searchsubmitButton" id="submitter" /></label> 
     <label><span> </span> <input name="c" type="submit" value="Topics" class="searchsubmitButton" id="submitter" /></label> 
    </form> 
+0

你是什麼意思的「不在谷歌鉻」dowrk?你是否收到錯誤消息?不想要的輸出?向我們提供更多信息,我們將能夠更好地爲您提供幫助。 :D – 2011-01-30 17:58:49

+0

它不起作用,因爲在地址欄中我沒有得到c =用戶或c =剪輯或c =主題,只是搜索=(搜索查詢)。 – 2011-01-30 18:05:17

回答

0

因爲你的輸入欄位在<label></label>標籤內嗎?