迅睿CMS框架是一款PHP8高性能·簡(jiǎn)單易用的CMS開源開發(fā)框架,基于MIT開源許可協(xié)議發(fā)布,免費(fèi)且不限制商業(yè)使用,是免費(fèi)開源的產(chǎn)品,以萬端互聯(lián)為設(shè)計(jì)理念,支持的微信公眾號(hào)、小程序、APP客戶端、移動(dòng)端網(wǎng)站、PC網(wǎng)站等多終端式管理系統(tǒng)。
聯(lián)系官方銷售客服
1835022288
028-61286886
搜索提交之后報(bào)錯(cuò), {"code":0,"msg":"禁止提交,請(qǐng)檢查提交地址是否有誤","data":[]}
說明搜索表單代碼的問題,代碼發(fā)來
回復(fù)@迅??蚣芗夹g(shù)-李波
<form action="{WEB_DIR}index.php" method="post">
<input type="hidden" name="s" value="image">
<input type="hidden" name="c" value="search">
<input type="text" name='keyword' value='{$keyword}' id="input1" placeholder="請(qǐng)輸入搜索關(guān)鍵詞">
<button type="submit" class="btn"></button>
</form>
<script>
// 這段js是用來執(zhí)行搜索的
function dr_search_module_select(dir, name) {
$("#dr_search_module_dir").val(dir);
$("#dr_search_module_name").html(name+' <i class="fa fa-angle-down"></i>');
}
dr_search_module_select('{php echo MOD_DIR ? MOD_DIR : $top_search.dirname}', '{php echo MOD_DIR ? MODULE_NAME : $top_search.name}');
</script>
明顯錯(cuò)了
不能寫post,改為get
參考文檔:《內(nèi)容模塊搜索框?qū)懛ā?/a>
我還以為post,get都可以的
說明搜索表單代碼的問題,代碼發(fā)來
回復(fù)@迅??蚣芗夹g(shù)-李波
<form action="{WEB_DIR}index.php" method="post">
<input type="hidden" name="s" value="image">
<input type="hidden" name="c" value="search">
<input type="text" name='keyword' value='{$keyword}' id="input1" placeholder="請(qǐng)輸入搜索關(guān)鍵詞">
<button type="submit" class="btn"></button>
</form>
<script>
// 這段js是用來執(zhí)行搜索的
function dr_search_module_select(dir, name) {
$("#dr_search_module_dir").val(dir);
$("#dr_search_module_name").html(name+' <i class="fa fa-angle-down"></i>');
}
dr_search_module_select('{php echo MOD_DIR ? MOD_DIR : $top_search.dirname}', '{php echo MOD_DIR ? MODULE_NAME : $top_search.name}');
</script>
明顯錯(cuò)了
不能寫post,改為get
參考文檔:《內(nèi)容模塊搜索框?qū)懛ā?/a>
我還以為post,get都可以的