浏览代码

更新 'application/index/view/base/top.html'

添加隐藏域token,防止表单重复提交
Me 5 年之前
父节点
当前提交
3e4edd3e6e
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      application/index/view/base/top.html

+ 1 - 0
application/index/view/base/top.html

@@ -78,6 +78,7 @@
 
 <div class="search-form"><!--搜索-->
     <form  name="formsearch" action="{:url('base/searchtop')}" method="post">
+      <input type="hidden" name="TOKEN" value="{:session('TOKEN')}" /><!--解决搜索表单F5刷新重复提交问题-->
         <div class="search-form-inner">
             <div class="search-form-box">
                 <input class="form-search" type="text" name="keywords" id='q' placeholder="请输入关键词">