在使用post方式提交表单时,可以直接在地址栏拼接参数:
<form action="user?method=register" method="post">
如上面的action参数,可以直接写目标服务器
但是get传输方式,则地址栏中的参数会先被格式化,再拼接表单中的参数
因此要在get方式使用URL参数,可以设置隐式参数即在表单中可以加入<input>标签
<form class="form-horizontal" action="user?method=register" method="post">
<input name="xxx" value="xxx">
用户名:<input name="username">
.....