联系官方销售客服

1835022288

028-61286886

开发框架 版主:迅睿框架研发组
网站表单中设置了用户提交表单时自动获取所在的页面或标题前台也
类型:迅睿CMS 更新时间:2020-12-29 11:00:10 表单 网站 用户 标题 前台 后台

网站表单中设置了用户提交表单时,自动获取所在的页面或标题,前台也能正常获取到,但是提交后,后台却不显示

<input type="hidden" id="dr_laiyuan"  name="data[laiyuan]"  value="{$cat.url}">

<input name="data[laiyuan]" id="dr_laiyuan"  type="hidden" value="{$meta_title}">

求大神


回帖
  • 迅睿框架技术-景攸
    #1楼    迅睿框架技术-景攸
    2020-12-29 09:49:53
    Chrome 0
    名字重复了,其他没问题

  • chaihuo
    #2楼    chaihuo
    2020-12-29 09:55:07
    Safari 0
    迅睿框架技术-景攸 <input name="data[laiyuan]" id="dr_laiyuan" type="hidden" value="{$meta_title}-{$my_web_url}">合并了,也没有用啊。

    前台都是可以的
  • 迅睿框架技术-景攸
    #3楼    迅睿框架技术-景攸
    2020-12-29 09:56:25
    Chrome 0
    laiyuan字段定义的列表截图给我看看,laiyuan字段不能禁言,不能前端不显示
  • chaihuo
    #4楼    chaihuo
    2020-12-29 10:39:22
    Safari 0
    迅睿框架技术-景攸 好是好了,但是现在的问题是在手机端域名变成m.的了,提交表单时报错【系统错误】
  • 迅睿框架技术-景攸
    #5楼    迅睿框架技术-景攸
    2020-12-29 10:40:44
    Chrome 0
    说明你的提交form代码有问题,你把代码发来我给你改改
  • chaihuo
    #6楼    chaihuo
    2020-12-29 10:42:40
    Safari 0
    <div class="page-content-inner" id="div12"> <div class="portlet light"> <div class="portlet-title"> <div class="caption"> <span class="caption-subject"> 报名咨询: </span> </div> </div> <div class="portlet-body"> <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="0"> <input name="is_tips" type="hidden" value=""> <input name="{csrf_token()}" type="hidden" value="{csrf_hash()}"> <div class="fc-form-body"> <div class="form-group" id="dr_row_title" style="position: relative;"> <label class="control-label col-md-2"> <span class="required" aria-required="true"> * </span> 姓名 </label> <div class="col-md-8"> <input class="form-control dr_required " type="text" name="data[title]" id="dr_title" value="" style="width:300px;" required="required" /> <span class="help-block" id="dr_title_tips"> </span> </div> </div> <div class="form-group" id="dr_row_dianhua" style="position: relative;"> <label class="control-label col-md-2"> <span class="required" aria-required="true"> * </span> 电话 </label> <div class="col-md-8"> <input class="form-control dr_required " type="text" name="data[dianhua]" id="dr_dianhua" value="" length="11" style="width:300px;" required="required" /> </div> </div> <div class="form-group" id="dr_row_qq" style="position: relative;"> <label class="control-label col-md-2"> QQ </label> <div class="col-md-8"> <input class="form-control " type="text" name="data[qq]" id="dr_qq" value="" style="width:300px;" /> </div> </div> <div class="form-group" id="dr_row_xingbie"> <label class="control-label col-md-2"> <span class="required" aria-required="true"> * </span> 性别 </label> <div class="col-md-8"> <div class="mt-radio-inline"> <label class="mt-radio mt-radio-outline"> <input type="radio" name="data[xingbie]" value="1" /> <span> </span> </label> <label class="mt-radio mt-radio-outline"> <input type="radio" name="data[xingbie]" value="2" /> <span> </span> </label> </div> </div> </div> <div class="form-group" id="dr_row_yxzy"> <label class="control-label col-md-2"> <span class="required" aria-required="true"> * </span> 意向专业 </label> <div class="col-md-8"> <input class="form-control dr_required " type="text" name="data[yxzy]" id="dr_yxzy" value="" style="width:300px;" required="required" /> <span class="help-block" id="dr_yxzy_tips"> 请输入想要了解的专业 </span> </div> </div> <div class="form-group" id="dr_row_hujidizhi"> <label class="control-label col-md-2"> 户籍地址 </label> <div class="col-md-8"> <input type="hidden" name="data[hujidizhi]" id="dr_hujidizhi" value="0"> <script type="text/javascript" src="{dr_site_info('basehost')}/static/assets/js/jquery.ld.js?v=20201215152111"> </script> <span id="dr_linkage_hujidizhi_select" style=""> <label style="padding-right:10px;"> <select class="form-control finecms-select-hujidizhi" name="hujidizhi-1" id="hujidizhi-1" width="100"> <option value=""> -- </option> </select> </label> <label style="padding-right:10px;"> <select class="form-control finecms-select-hujidizhi" name="hujidizhi-2" id="hujidizhi-2" width="100" style="display:none"> <option value=""> -- </option> </select> </label> <label id="dr_linkage_hujidizhi_html"> </label> </span> <script type="text/javascript"> function dr_linkage_select_hujidizhi() { $("#dr_linkage_hujidizhi_select").show(); $("#dr_linkage_hujidizhi_cxselect").hide(); } $(function() { var $ld5 = $(".finecms-select-hujidizhi"); $ld5.ld({ ajaxOptions: { "url": "{dr_site_info('basehost')}/index.php?s=api&c=api&m=linkage&mid=form&file=&code=anhuisheng" }, inputId: "dr_linkage_hujidizhi_html", defaultParentId: 0 }); var ld5_api = $ld5.ld("api"); ld5_api.selected(); $ld5.bind("change", function(e) { var $target = $(e.target); var index = $ld5.index($target); //$("#hujidizhi-3").remove(); var vv = $ld5.eq(index).show().val(); $("#dr_hujidizhi").val(vv); index++; $ld5.eq(index).show(); //console.log("value="+vv); }); }) </script> </div> </div> <div class="form-group" id="dr_row_hukouxingzhi"> <label class="control-label col-md-2"> <span class="required" aria-required="true"> * </span> 户口性质 </label> <div class="col-md-8"> <div class="mt-radio-inline"> <label class="mt-radio mt-radio-outline"> <input type="radio" name="data[hukouxingzhi]" value="1" /> 其他/未知 <span> </span> </label> <label class="mt-radio mt-radio-outline"> <input type="radio" name="data[hukouxingzhi]" value="2" /> 农村户口 <span> </span> </label> <label class="mt-radio mt-radio-outline"> <input type="radio" name="data[hukouxingzhi]" value="3" /> 城市户口 <span> </span> </label> </div> </div> </div> <div class="form-group" id="dr_row_mzsm"> <label class="control-label col-md-2"> <span class="required" aria-required="true"> * </span> 免责申明 </label> <div class="col-md-10"> <div class="mt-checkbox-inline"> <label class="mt-checkbox mt-checkbox-outline"> <input type="checkbox" name="data[mzsm][]" value="value1"> <a href="{dr_site_info('basehost')}/yinsibaozhang.html"> 同意用户条款,老师帮你择校调剂 </a> <span> </span> </label> </div> </div> </div> <input name="data[laiyuan]" id="dr_laiyuan" type="hidden" value="{$meta_title}-{$my_web_url}"> </div> <div class="portlet-body form myfooter" style="text-align:center;"> <button type="button" onclick="dr_ajax_submit('{dr_site_info('basehost')}/index.php?s=form&c=baomingzixun&m=post', 'myform', '2000', '{$my_web_url}')" class="btn green" style="width:300px;"> <i class="fa fa-save"> </i> 提交报名 </button> </div> </form> </div> </div></div><!--{dr_site_info('basehost')}是www主站点-->
  • 迅睿框架技术-景攸
    #7楼    迅睿框架技术-景攸
    2020-12-29 10:45:05
    Chrome 0


    则个不对的改成:<button type="button" onclick="dr_ajax_submit('/index.php?s=form&c=baomingzixun&m=post', 'myform', '2000', '{$my_web_url}')"
  • chaihuo
    #8楼    chaihuo
    2020-12-29 10:50:57
    Safari 0
    迅睿框架技术-景攸 还是不行 😂
  • 迅睿框架技术-景攸
    #9楼    迅睿框架技术-景攸
    2020-12-29 10:51:41
    Chrome 0
    不可能啊
  • 迅睿框架技术-景攸
    #10楼    迅睿框架技术-景攸
    2020-12-29 10:51:47
    Chrome 0
    这样吧,你安装一个向日葵远程控制软件,然后把伙伴识别码和验证码(写在“仅管理员可见区域”)发给我,我来远程操作看看,免费服务的
  • chaihuo
    #11楼    chaihuo
    2020-12-29 10:53:24
    Safari 0
    迅睿框架技术-景攸
    ********此内容仅楼主可见********
    发了
  • 迅睿框架技术-景攸
    #12楼    迅睿框架技术-景攸
    2020-12-29 11:00:06
    Chrome 0
    已经远程帮你处理了,其他用户也可以观看本次处理的视频来学习经验。静态模式下,不能有提交动态表单功能!
    满意答案
  • chaihuo
    #13楼    chaihuo
    2020-12-29 11:00:10
    Chrome 0
    @迅睿框架技术-景攸:已协助处理完毕