在php或html页面上我该怎么做:
名 密码 和许多按钮
如果用户按下按钮1,我们会改为:
http://domain.com/login.php?button1=123&name=test&password=111
buttom2: http://domain.com/login.php?button2=456&name=test&password=111
buttom3: http://domain.com/login.php?button3=789&name=test&password=111
谢谢
答案 0 :(得分:0)
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