21,882
社区成员
发帖
与我相关
我的任务
分享
<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>