SentralLiu

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

在使用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">
.....

 

posted on 2021-12-14 17:23  SentralLiu  阅读(540)  评论(0)    收藏  举报