看板 PHP 關於我們 聯絡資訊
在下的習慣是.. <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