联系官方销售客服

1835022288

028-61286886

开发框架 版主:迅睿框架研发组
提交留言一直显示系统错误是什么原因啊就是后台创建了一个网站表
类型:迅睿CMS 更新时间:2020-09-12 13:29:42
模板标签里面

提交留言一直显示系统错误 是什么原因啊


就是后台创建了一个网站表单

            {php extract(dr_get_form_post_value('wzly'))}
                <form class="dinggou" onsubmit="return submsg(this);" action="" method="post" myform" id="myform">
                {$form}
                    <input type="text" name="data[title]" required="" id="contacts" class="form-control" placeholder="请输入联系人">
                    <input type="text" name="data[shouji]" required="" id="mobile" class="form-control" placeholder="请输入联系人手机">
                    <textarea name="data[neirong]" id="content" class="form-controltxt" placeholder="请输入留言内容"></textarea>
                    {if $is_post_code}
                    <div id="yanzm">
                        <input type="text" name="code" required="" id="checkcode" class="form-control" placeholder="请输入验证码">
                        <img title="点击刷新" src="{dr_code(120, 35)}">
                    </div>
                    {/if}
<button type="button" onclick="dr_ajax_submit('{dr_now_url()}', 'myform', '2000', '{$rt_url}')" class="btn green"> <i class="fa fa-save"></i> 提交内容</button>
</form>
                        <script>
                            function dr_liuyan() {
                                $.ajax({
                                    type: "POST",
                                    dataType: "json",
                                    data: $("#dr_liuyan").serialize(),
                                    url: "{dr_url('index.php?c=liuyan')}",
                                    success: function(json) {
                                        if (json.code) {
                                            layer.msg(json.msg);
                                        } else {
                                            layer.msg(json.msg);
                                        }
                                    },
                                    error: function(HttpRequest, ajaxOptions, thrownError) {
                                        // alert(HttpRequest.responseText);
                                        layer.msg('发生异常');
                                    }
                                });
                            }
                        </script>
            </div>


回帖
  • 五金冲压件
    #1楼    五金冲压件
    2020-09-12 13:02:39
    Chrome 0
    增加悬赏(设置悬赏)金:1元,希望大家给予帮助!
    满意答案
  • 解攀解攀
    #2楼    解攀解攀
    2020-09-12 13:28:19
    Chrome 0
    按钮写法有问题
  • 五金冲压件
    #3楼    五金冲压件
    2020-09-12 13:29:42
    三星手机 0
    @五金冲压件:已经解决了,抬头php查询代码有问题