作者KC73 (肯先生)
看板PHP
标题Re: [请益] 如何在submit後的页面查询前一页的form …
时间Thu Dec 27 19:53:18 2007
在下的习惯是..
<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