
一个网页同时提交多个form表单,提交到同一个页面
<fromid="form1"name="form1"action=“vote.php”method="post"><formid="form2"name="form2"...
<from id="form1" name="form1" action=“vote.php” method="post">
<form id="form2" name="form2" action="vote.php" method="post"> 展开
<form id="form2" name="form2" action="vote.php" method="post"> 展开
2个回答
展开全部
一个在action后面加参数 比如vote.php?type=1或2,然后vote.php先判断传值是1还是2,然后对应相应的处理程序
追问
js该如何写????
追答
和js没有关系,直接提交就可以
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询