联系官方销售客服

1835022288

028-61286886

开发框架 版主:迅睿框架研发组
全局表单提交提示“跨站验证超时”
类型:迅睿CMS 更新时间:2023-02-15 14:46:15 跨站验证超时

全局表单签单提交的时候,提示“跨站验证超时请重试”,还再点击一次才提交成功。表单模板是自定义的。


image

回帖
  • 迅睿框架技术-陈老师
    #1楼    迅睿框架技术-陈老师
    2023-02-15 11:45:34
    Chrome 0
    表单模板内容看看,看看是否写规范
  • 繁星
    #2楼    繁星
    2023-02-15 11:49:43
    Chrome 0
    迅睿框架技术-陈老师
     <form action="" class="form-horizontal" method="post" name="myform" id="myform">
    <input name="is_form" type="hidden" value="1">
    <input name="is_admin" type="hidden" value="1">
    <input name="is_tips" type="hidden" value="">
    <input name="csrf_test_name" type="hidden" value="00aab5be4603a48ff0d3980f9f8488ce"> 
    <table width="50%" border="0" cellspacing="0" cellpadding="0" align="center">
            <tbody><tr>
              <td valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                  <tbody><tr>
                    <td style="border-bottom:#000000 solid 1px ; border-top:#000000 solid 1px ; border-left:#000000 solid 1px;"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                        <tbody><tr>
                          <td width="90" align="center" style="height:60px; font-weight:bold; padding-left:10px;">姓名:</td>
                          <td width="140" style="border-left:1px solid #000000; padding-left:10px;"><label>
                            <input name="data[xingming]" id="dr_xingming" type="text" style="height:25px;" value="输入姓名" size="16">
                          </label></td>
                          <td align="center" style="height:35px; width:90px; font-weight:bold; padding-left:10px; border-left:1px solid #000000;">性别:</td>
                          <td width="100" style="border-left:1px solid #000000; padding-left:10px;">
                             <label><select  class=" form-control "  name="data[xingbie]" id="dr_xingbie"  ><option value="1" >男</option><option value="2" >女</option></select></label>
                             </td>
                          <td align="center" style="height:35px; width:90px; font-weight:bold; padding-left:10px; border-left:1px solid #000000;">民族:</td>
                          <td style="border-left:1px solid #000000; padding-left:10px;">
                              <input type="text" name="data[minzu]" id="dr_minzu"  style="height:25px;" size="26">
                              </td>
                        </tr>
                    </tbody></table></td>
                  </tr>
                  <tr>
                    <td style="border-bottom:#000000 solid 1px ; border-left:#000000 solid 1px;"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                        <tbody><tr>
                          <td width="90" align="center" style="height:60px; font-weight:bold; padding-left:10px;">身份证:</td>
                          <td width="684" style="border-left:1px solid #000000; padding-left:10px;"><label>
                            <input type="text" name="data[sfzhm]" id="dr_sfzhm"  style="height:25px;" value="输入姓名" size="32">
                          </label></td>
                        </tr>
                    </tbody></table></td>
                  </tr>
                  <tr>
                    <td style="border-bottom:#000000 solid 1px ; border-left:#000000 solid 1px;"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                        <tbody><tr>
                          <td width="90" align="center" style="height:60px; font-weight:bold; padding-left:10px;">政治面貌:</td>
                          <td width="140" style="border-left:1px solid #000000; padding-left:10px;"><label>
                            <input type="text" name="data[zzmm]" id="dr_zzmm"  style="height:25px;" value="输入姓名" size="16">
                          </label></td>
                          <td align="center" style="height:35px; width:90px; font-weight:bold; padding-left:10px; border-left:1px solid #000000;">最高学历:</td>
                          <td width="90" style="border-left:1px solid #000000; padding-left:10px; padding-right:10px"><label>
                            <input type="text" name="data[zuigaoxueli]" id="dr_zuigaoxueli"  style="height:25px;" size="10">
                          </label></td>
                          <td align="center" style="height:35px; width:90px; font-weight:bold; padding-left:10px; border-left:1px solid #000000;">所学专业:</td>
                          <td style="border-left:1px solid #000000; padding-left:10px;"><input type="text" name="data[sxzy]" id="dr_sxzy"  style="height:25px;" size="18"></td>
                        </tr>
                    </tbody></table></td>
                  </tr>
              </tbody></table></td>
              <td align="center" style="width:200px; height:180px;  border:#000000 solid 1px ;">照<br>
                片</td>
            </tr>
            <tr>
              <td colspan="2"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                  <tbody><tr>
                    <td width="90" align="center" style="height:60px; font-weight:bold; padding-left:10px; border-left:1px solid #000000; border-bottom:1px solid #000000;">毕业院校:</td>
                    <td width="140" style="border-left:1px solid #000000; padding-left:10px; border-bottom:1px solid #000000;"><label>
                      <input type="text" name="data[biyeyuanxiao]" id="dr_biyeyuanxiao"  style="height:25px;" value="输入姓名" size="16">
                    </label></td>
                    <td align="center" style="height:35px; width:120px; font-weight:bold; padding-left:10px; border-left:1px solid #000000; border-bottom:1px solid #000000;">参加工作时间:</td>
                    <td width="161" style="border-left:1px solid #000000; padding-left:10px; padding-right:10px; border-bottom:1px solid #000000;"><label>
                    <input type="text" name="data[cjgzsj]" id="dr_cjgzsj"  style="height:25px;" size="20">
                    </label></td>
                    <td align="center" style="height:35px; width:90px; font-weight:bold; padding-left:10px; border-left:1px solid #000000; border-bottom:1px solid #000000;">职务∕职称:</td>
                    <td style="border-left:1px solid #000000; padding-left:10px; border-bottom:1px solid #000000; border-right:1px solid #000000;"><input type="text" name="data[zwzc]" id="dr_zwzc"  style="height:25px;" size="18"></td>
                  </tr>
              </tbody></table></td>
            </tr>
            <tr>
              <td colspan="2"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                  <tbody><tr>
                    <td width="90" align="center" style="height:60px; font-weight:bold; padding-left:10px; border-left:1px solid #000000; border-bottom:1px solid #000000;">工作单位:</td>
                    <td width="140" style="border-left:1px solid #000000; padding-left:10px; border-bottom:1px solid #000000;"><label>
                      <input type="text" name="data[gzdw]" id="dr_gzdw" style="height:25px;" value="输入姓名" size="16">
                    </label></td>
                    <td align="center" style="height:35px; width:90px; font-weight:bold; padding-left:10px; border-left:1px solid #000000; border-bottom:1px solid #000000;">部门:</td>
                    <td style="border-left:1px solid #000000; padding-left:10px; border-bottom:1px solid #000000; border-right:1px solid #000000;"><input type="text" name="data[bumen]" id="dr_bumen"  style="height:25px;" size="18"></td>
                  </tr>
              </tbody></table></td>
            </tr>
            <tr>
              <td colspan="2"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                  <tbody><tr>
                    <td width="86" align="center" style="height:60px; font-weight:bold; padding-left:10px; border-left:1px solid #000000; border-bottom:1px solid #000000;">通讯地址:</td>
                    <td width="540" style="border-left:1px solid #000000; padding-left:10px; border-bottom:1px solid #000000;"><label>
                      <input type="text" name="data[tongxundizhi]" id="dr_tongxundizhi"  style="height:25px;" value="输入姓名" size="60">
                    </label></td>
                    <td width="300" align="center" style="height:35px; font-weight:bold; border-left:1px solid #000000; border-right:1px solid #000000; border-bottom:1px solid #000000;"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                        <tbody><tr>
                          <td width="80" height="40" align="center" style="border-bottom:1px solid #000000;">固定电话</td>
                          <td style=" border-left:1px solid #000000; padding-left:10px; border-bottom:1px solid #000000;"><input type="text" name="data[gddh]" id="dr_gddh"  style="height:25px;" size="18">
                          </td>
                        </tr>
                        <tr>
                          <td height="40" align="center">移动电话</td>
                          <td style=" border-left:1px solid #000000; padding-left:10px;"><input type="text" name="data[yddh]" id="dr_yddh"  style="height:25px;" size="18">
                          </td>
                        </tr>
                    </tbody></table></td>
                  </tr>
              </tbody></table></td>
            </tr>
            <tr>
              <td colspan="2"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                  <tbody><tr>
                    <td width="90" align="center" style="height:60px; font-weight:bold; padding-left:10px; border-left:1px solid #000000; border-bottom:1px solid #000000;">统一社会 <br>
                      信用代码:</td>
                    <td width="140" style="border-left:1px solid #000000; padding-left:10px; border-bottom:1px solid #000000;"><label>
                      <input type="text" name="data[tyshxydm]" id="dr_tyshxydm"  style="height:25px;" value="输入姓名" size="16">
                    </label></td>
                    <td align="center" style="height:35px; width:90px; font-weight:bold; padding-left:10px; border-left:1px solid #000000; border-bottom:1px solid #000000;">邮编:</td>
                    <td style="border-left:1px solid #000000; padding-left:10px; border-bottom:1px solid #000000; border-right:1px solid #000000;"><input type="text" name="data[youbian]" id="dr_youbian"  style="height:25px;" size="18"></td>
                  </tr>
              </tbody></table></td>
            </tr>
            <tr>
              <td colspan="2"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                  <tbody><tr>
                    <td width="90" align="center" style="height:60px; font-weight:bold; padding-left:10px; border-left:1px solid #000000; border-bottom:1px solid #000000;">资格类型<br>
                      (选一项)</td>
                    <td width="450" style="border-left:1px solid #000000; padding-left:10px; border-bottom:1px solid #000000;">
                      <label class="mt-radio mt-radio-outline"><input type="radio" name="data[zigeleixing]" value="1"   /> 主要负责人 <span></span> </label><label class="mt-radio mt-radio-outline"><input type="radio" name="data[zigeleixing]" value="2"   /> 安全生产管理人员 <span></span> </label>
                      </td>
                    <td align="center" style="height:35px; width:90px; font-weight:bold; padding-left:10px; border-left:1px solid #000000; border-bottom:1px solid #000000;">邮箱:</td>
                    <td style="border-left:1px solid #000000; padding-left:10px; border-bottom:1px solid #000000; border-right:1px solid #000000;"><input type="text" name="data[youxiang]" id="dr_youxiang"  style="height:25px;" size="30"></td>
                  </tr>
              </tbody></table></td>
            </tr>
            <tr>
              <td colspan="2"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                  <tbody><tr>
                    <td width="90" align="center" style="height:60px; font-weight:bold; padding-left:10px; border-left:1px solid #000000; border-bottom:1px solid #000000;">单位类型(选一项)</td>
                    <td width="400" style="border-left:1px solid #000000; padding-left:10px; border-bottom:1px solid #000000; border-right:1px solid #000000;">
                      <label class="mt-radio mt-radio-outline"><input type="radio" name="data[dwlx]" value="1"   /> 非煤矿山 <span></span> </label><label class="mt-radio mt-radio-outline"><input type="radio" name="data[dwlx]" value="2"   /> 危险化学品经营单位 <span></span> </label><label class="mt-radio mt-radio-outline"><input type="radio" name="data[dwlx]" value="3"   /> 非高危行 <span></span> </label><label class="mt-radio mt-radio-outline"><input type="radio" name="data[dwlx]" value="4"   /> 危险化学品生产单位 <span></span> </label>
                      
                      </td>
                  </tr>
              </tbody></table></td>
            </tr>
            <tr>
              <td colspan="2"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                  <tbody><tr>
                    <td width="90" align="center" style="height:60px; font-weight:bold; padding-left:10px; border-left:1px solid #000000; border-bottom:1px solid #000000;">培训类型
                      (选一项)</td>
                    <td width="400" style="border-left:1px solid #000000; padding-left:10px; border-bottom:1px solid #000000; border-right:1px solid #000000;">
                      <label class="mt-radio mt-radio-outline"><input type="radio" name="data[pxlx]" value="1"  checked  /> 复训 <span></span> </label>
                      
                      </td>
                  </tr>
              </tbody></table></td>
            </tr>
            
            
            
            <tr>
              <td colspan="2"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                  <tbody><tr>
                    <td width="90" align="center" style="height:60px; font-weight:bold; padding-left:10px; border-left:1px solid #000000; border-bottom:1px solid #000000;">照片上传</td>
                    <td width="400" style="border-left:1px solid #000000; padding-left:10px; border-bottom:1px solid #000000; border-right:1px solid #000000;">
                     
                     
                 <div class="col-md-10">
    			<div class="row fileupload-buttonbar" id="fileupload_zpsc1">
    				<div class="col-lg-12">
    					<span class="btn blue btn-sm fileinput-button">
    						<i class="fa fa-plus"></i>
    						<button> 点击上传 </button>
    						<input type="file" name="file_data"> 
    					</span>
    
    					<button onclick="fileupload_file_remove('zpsc1')" style="margin-left: 5px;display:none" type="button" class="btn red btn-sm fileinput-delete">
    						<i class="fa fa-trash"></i>
    						<span> 删除 </span>
    					</button>
    					
    					<span class="fileupload-process"> </span>
    				</div>
    				<div class="col-lg-12 fileupload-progress fade" style="display:none">
    					<div class="progress progress-striped active" role="progressbar" aria-valuemin="0" aria-valuemax="100">
    						<div class="progress-bar progress-bar-success" style="width:0%;"> </div>
    					</div>
    				</div>
    			</div><div id="fileupload_zpsc1_files" class="files"><input type="hidden" id="dr_zpsc1" name="data[zpsc1]" value=""></div>
    			<link href="/static/assets/global/plugins/jquery-fileupload/css/jquery.fileupload.css?v=20221123201304" rel="stylesheet" type="text/css">
    			<script src="/static/assets/global/plugins/jquery-fileupload/js/jquery.fileupload.min.js?v=20221123201304" type="text/javascript"></script>
    			<script type="text/javascript">
            $(function() {
                fileupload_file_init({"name":"zpsc1","ext":" \/(\\.|\\\/)(jpg)$\/i","size":1048576,"url":"\/index.php?s=api&c=file&is_iframe=1&token=260c9ee650c0e87a006a8977e9f59fa5&siteid=3&m=upload&p=7016e18a94744e6a4a01a1a48ac6e970&fid=74","unused_url":"\/index.php?s=api&c=file&m=input_file_list&is_iframe=1&p=7016e18a94744e6a4a01a1a48ac6e970&fid=74","input_url":"\/index.php?s=api&c=file&m=input_file_url&is_iframe=1&token=260c9ee650c0e87a006a8977e9f59fa5&siteid=3&p=7016e18a94744e6a4a01a1a48ac6e970&fid=74&file=&one=1","tpl":"<div id=\"dr_zpsc1_files_row\" class=\"file_row_html files_row\"><div class=\"files_row_preview preview\">{preview}<\/div><input type=\"hidden\"  id=\"dr_zpsc1\" class=\"files_row_id\" name=\"data[zpsc1]\" value=\"{id}\" \/><\/div>","area":["80%","80%"],"url_area":["50%","300px"],"chunk":0});
            });
            </script></div>
                     
                     
                     
                     
                      
                      </td>
                  </tr>
              </tbody></table></td>
            </tr>
          
           
    
          </tbody></table>
          
          
          <table width="50%" border="0" align="center" cellpadding="0" cellspacing="1">
        <tbody>
         <tr  align="center"><td  align="center"><label class="control-label col-md-2">验证码</label> <input type="text" class="form-control" name="code"><img align="absmiddle" style="cursor:pointer;" onclick="this.src='/index.php?s=api&c=api&m=captcha&width=120&height=35&'+Math.random();" src="/index.php?s=api&c=api&m=captcha&width=120&height=35" />    </td></tr>
           <tr  align="center">
                <td colspan="8" align="center" valign="middle" bgcolor="#FFFFFF"> <button type="button" onclick="dr_ajax_submit('{dr_now_url()}', 'myform', '2000', '{$rt_url}')" class="btn green"> <i class="fa fa-save"></i> 提交</button>
                             </td>
              </tr>  
      </tbody></table> 
          
          
          
          </form>

  • 迅睿框架技术-陈老师
    #3楼    迅睿框架技术-陈老师
    2023-02-15 11:50:55
    Chrome 0
    <input name="is_form" type="hidden" value="1">
    <input name="is_admin" type="hidden" value="1">
    <input name="is_tips" type="hidden" value="">
    <input name="csrf_test_name" type="hidden" value="00aab5be4603a48ff0d3980f9f8488ce">
    这里不对,不能写死,呀哦用函数输出参考文档:《外部页面调用网站表单/全局表单提交项目》
    满意答案
  • 繁星
    #4楼    繁星
    2023-02-15 14:46:15
    Chrome 0
    @迅睿框架技术-陈老师:感谢!!!!!!!!!!!!