在php或html页面上我该如何做到这一点:
名称暗语和许多按钮
如果用户按下按钮1,我们将重定向到:
http://domain.com/login.php?button1=123&name=测试&密码=111
buttom2:http://domain.com/login.php?button2=456&name=测试&密码=111
buttom3:http://domain.com/login.php?button3=789&name=测试&密码=111
感谢
You have this simple option according to me.
<form action='login.php' method='get'>
<input type='text' name='name'>
<input type='password' name='password'>
<input type='submit' name='button1' value='123'>
<input type='submit' name='button2' value='456'>
<input type='submit' name='button2' value='789'>
</form>
Hope it helps