如何把一个页面的表单值提交到不同的页面中去 如何把一个页面的表单值提交到不同的页面中去,比如A页面有一个表单,要把其中的数据分别传到B和C页面中去,做分别处理?? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 分别提交到两个新的窗口去.即提交一次后,更改它的action并且更改target然后再自动提交一次。 对,可以用JS的location.href来提交 HTML文件中:<html> <head> <title>test</title> <script language="JavaScript"> function jump01() { document.form.action="test01.php"; } function jump02() { document.form.action="test02.php"; } </script> </head> <body> <form name="form" id="form" method="POST"> 姓名:<input type="text" name="text"> <input type="button" name="btn1" onclick="jump01()"> //会提交到test01.php文件中 <input type="button" name="btn2" onclick="jump02()"> //会提交到test02.php文件中 </form> </body></html> 如果是只用一个按钮,同时递交到两个php文件,如何实现? function jump01() { document.form.action="test01.php"; document.form.action="test02.php"; } mysql分组查询金额如何同时查询全部总金额? MYSQL 联合查询效率问题 本地能运行,上传到服务器就不行了???? php上传文件路径不起作用 IE使URL重写的会话失效 如何导出mysql的数据到sql server 或access???是新网的mysql空间 注销session 急需一“企业产品展示”PHP源码! PHP4太奇怪了!(一个关于session的疑问) 求大神帮忙 Phpexcel 如何实现整列下拉功能 php上传图片 php删除提示问题
即提交一次后,更改它的action并且更改target然后再自动提交一次。
<html>
<head>
<title>test</title>
<script language="JavaScript">
function jump01()
{
document.form.action="test01.php";
}
function jump02()
{
document.form.action="test02.php";
}
</script>
</head>
<body>
<form name="form" id="form" method="POST">
姓名:<input type="text" name="text">
<input type="button" name="btn1" onclick="jump01()"> //会提交到test01.php文件中
<input type="button" name="btn2" onclick="jump02()"> //会提交到test02.php文件中
</form>
</body>
</html>
{
document.form.action="test01.php";
document.form.action="test02.php";
}