聯(lián)系官方銷(xiāo)售客服
1835022288
028-61286886
提交留言一直顯示系統(tǒng)錯(cuò)誤 是什么原因啊
就是后臺(tái)創(chuàng)建了一個(gè)網(wǎng)站表單
{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="請(qǐng)輸入聯(lián)系人"> <input type="text" name="data[shouji]" required="" id="mobile" class="form-control" placeholder="請(qǐng)輸入聯(lián)系人手機(jī)"> <textarea name="data[neirong]" id="content" class="form-controltxt" placeholder="請(qǐng)輸入留言?xún)?nèi)容"></textarea> {if $is_post_code} <div id="yanzm"> <input type="text" name="code" required="" id="checkcode" class="form-control" placeholder="請(qǐng)輸入驗(yàn)證碼"> <img title="點(diǎn)擊刷新" 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> 提交內(nè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('發(fā)生異常'); } }); } </script> </div>
按鈕寫(xiě)法有問(wèn)題