Re: [請益] 如何在submit後的頁面查詢前一頁的form …

看板PHP作者 (肯先生)時間18年前 (2007/12/27 19:53), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串9/9 (看更多)
在下的習慣是.. <form action='result.php?formid=xxxx' method='post'> 在 result.php 就讀 $_GET['formid'] 決定該怎麼查詢, 然後其他資料都在 $_POST 裡面可以查到。 不過這樣跟 hidden 好像也沒有聰明多少.... 或者... <script type='text/javascript'> function sendform(form) { n = form.name; window.open("result.php?formid"+n,"_self"); } </script> <form name='formxxx' onsubmit='sendform(this)'> <input type=submit> </form> 意思也差不多.... 反正都要找個地方放 form id 進去, 不管用 url、用 hidden、用 name ... 還是我整個都誤解您的意思了? ※ 引述《Alwayswithu (等待幸福)》之銘言: (恕刪) -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 59.112.194.167
文章代碼(AID): #17Sv8lSL (PHP)
討論串 (同標題文章)
文章代碼(AID): #17Sv8lSL (PHP)