[問題] HTML中 form method POST 問題

看板Web_Design作者 (支持匈奴建國)時間14年前 (2011/07/07 03:49), 編輯推噓1(101)
留言2則, 2人參與, 最新討論串1/1
HTML中寫了兩了按鈕如下 <form method="post" action="/"> 對 <input type="text" name='user'> 說 <input type="text" name='say'> <input type="submit" value="送出"> </from> <form method="get" action="/gbpo"> <input type="text" name='id'> <input type="submit" value="查詢"> </from> 但當我按第二顆按鈕要POST東西出去時 他卻執行第一個action="/" 並同時將三個參數都傳出去 請問有什麼辦法可以區別解決 謝謝 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 114.36.180.98

07/07 04:38, , 1F
07/07 04:38, 1F

07/07 11:08, , 2F
原po 的 </form> 都寫成 </from>
07/07 11:08, 2F
文章代碼(AID): #1E5Bmn4w (Web_Design)
文章代碼(AID): #1E5Bmn4w (Web_Design)