我有一种形式:提交表单,以不同的动作,在一种形式
<form method="POST" action="index.php">
和2按键
<button name='button1'></button>
<button name='button2'></button>
我要的是点击button1
然后形成后的index.php,但点击button2
然后形成发布到index2.php。
OR
点击两粒扣的形式邮寄到index.php,之后的index.php后阵列index2.php。我不使用GET功能!
我非常肯定,你必须使用Javascript来做到这一点,因为你必须对DOM进行更改。 – Jordy 2015-03-03 09:00:57