迅睿CMS框架是一款PHP8高性能·简单易用的CMS开源开发框架,基于MIT开源许可协议发布,免费且不限制商业使用,是免费开源的产品,以万端互联为设计理念,支持的微信公众号、小程序、APP客户端、移动端网站、PC网站等多终端式管理系统。
联系官方销售客服
1835022288
028-61286886
网站表单做的留言,提交后提示“系统错误”,审查元素报错403、服务器的响应状态为403 (),如图:,本地没有问题,是添加亚马逊cdn的事吗?还是什么原因呢?帮忙看下 谢谢了
域名:https://www.china-vote.com/
首页、产品详情页、移动端底部导航都有留言,全部报错系统错误、403
<iframe src="https://php.china-vote.com/index.php?s=form&m=post&c=你的表单名称" width="200" height="200"></iframe>
dr_ajax_submit('{$post_url}', 'myform2', '2000', '{$rt_url}') 改成 dr_ajax_submit('{dr_now_url()}', 'myform2', '2000', '{$rt_url}')
按你的流程操作完后,提交留言后审查元素报错“Uncaught ReferenceError: dr_ajax_submit is not definedat HTMLButtonElement.onclick (index.php?s=form&m=post&c=liuyan:69)”
地址:https://liuyan.china-vote.com/index.php?s=form&m=post&c=liuyan 是什么原因呢?home/index.html的代码:<figure class="liuyan"><iframe src="https://liuyan.china-vote.com/index.php?s=form&m=post&c=liuyan" width="100%" height="560px"></iframe></figure>home/form/liuyan_post.html的代码:{php extract(dr_get_form_post_value('liuyan'))} <form action="" class="form-horizontal" method="post" name="myform" id="myform2"> {dr_form_hidden()} {$form} <div class="fc-form-body ul"> <div class="form-group li" id="dr_row_title"> <label class="control-label col-md-2"> <span class="required" aria-required="true"></span> <span class="f-red">* </span>Name </label> <div class="col-md-10"> <input class="form-control dr_required " type="text" name="data[title]" id="dr_title" value="" required="required"></div> </div> <div class="form-group li" id="dr_row_shouji"> <label class="control-label col-md-2">Phone number / Whatsapp number</label> <div class="col-md-10"><input class="form-control " type="text" name="data[shouji]" id="dr_shouji" value=""></div> </div> <div class="form-group li" id="dr_row_youxiang"> <label class="control-label col-md-2"> <span class="required" aria-required="true"></span> <span class="f-red">* </span>Email </label> <div class="col-md-10"> <input class="form-control dr_required email" type="email" name="data[youxiang]" id="dr_youxiang" pattern="^[a-z0-9]+([._\\-]*[a-z0-9])*@([a-z0-9]+[-a-z0-9]*[a-z0-9]+.){1,63}[a-z0-9]+$" value="" required="required" /> </div> </div> <div class="form-group li" id="dr_row_guojia"> <label class="control-label col-md-2"><span class="required" aria-required="true"></span>Country / Region </label> <div class="col-md-10"><input class="form-control dr_required " type="email" name="data[guojia]" id="dr_guojia" value="" required="required"></div> </div> <div class="form-group li" id="dr_row_cpxz"> <label class="control-label col-md-2"><span class="required" aria-required="true"></span>Favorite product</label> <div class="col-md-10"> <select name="data[cpxz]" class="xz"> <option value="Mini Excavator" selected>Mini Excavator</option> <option value="Backhoe Loader">Backhoe Loader</option> <option value="Self Loading Concrete Mixer">Self Loading Concrete Mixer</option> <option value="Rough Terrain Forklift">Rough Terrain Forklift</option> </select> </div> </div> <div class="form-group li" id="dr_row_nxw"> <label class="control-label col-md-2"><span class="required" aria-required="true"></span>How would you like us to contact you?</label> <div class="col-md-10"> <select name="data[nxw]" class="xz"> <option value="phone" selected>Phone</option> <option value="whatsapp">Whatsapp</option> <option value="email">Email</option> </select> </div> </div> <div class="form-group li" id="dr_row_xinxi"> <label class="control-label col-md-2">Remark</label> <div class="col-md-10"> <textarea class="form-control xinxi" name="data[xinxi]" id="dr_xinxi"></textarea> </div> </div> <!-- {if $is_post_code} <div class="form-group"> <label class="control-label col-md-1">{dr_lang('Verify code')}</label> <div class="col-md-10"> <label> <div class="form-recaptcha"> <div class="input-group"> <input class="yzm" type="text" class="form-control" name="code"> <div class="input-group-btn fc-code"> {dr_code(120, 35)} </div> </div> </div> </label> </div> </div> {/if} --> </div> <div class="f-overf"> <button class="f-fr f-fff btn" type="button" onclick="dr_ajax_submit('{dr_now_url()}', 'myform2', '2000', '{$rt_url}')"> Submissions </button> </div> </form>
参考文档:《前端模板JS类》 少了写系统js库