迅睿CMS框架是一款PHP8高性能·简单易用的CMS开源开发框架,基于MIT开源许可协议发布,免费且不限制商业使用,是免费开源的产品,以万端互联为设计理念,支持的微信公众号、小程序、APP客户端、移动端网站、PC网站等多终端式管理系统。
表单查询,不能使用ajax().
网站表单:基于网站表单设计查询内容(如证书查询),开发实例,PHP开源CMS系统帮助文档 (xunruicms.com)
根据此内容,制作了证书查询,全部使用页面中的代码,如果使用ajax()提交查询就会报错“禁止提交,请检查提交地址是否有误”
<a onclick="dr_ajax_submit('{$post_url}', 'myform', 0, '')" >点击查询</a>
增加 {dr_form_hidden()} 无济于事。 跨站模式 关闭也不行。
<form class="search-form" id="myform" name="myform" action="/index.php" method="get"> <input type="hidden" name="s" value="form"> <input type="hidden" name="c" value="zhengshu"> <input type="hidden" name="m" value="search"> <table width="370" border="0" style="margin:20px auto 0;"> <tr> <td> <input type="text" name="zsbh" value="请在此处输入:姓名" /> </td> <td> <img src="/static/cn/images/11_03.gif" onclick="dr_ajax_submit('{$get_url}', 'myform', 0, '')" ></td> </tr> </table> </form>
<script> $(document).ready(function(){ $("button").click(function(){ $.get("/example/jquery/demo_test.asp",function(data,status){ alert("数据:" + data + "\n状态:" + status); }); }); }); </script>