迅睿開(kāi)源框架是一款PHP8高性能·簡(jiǎn)單易用的PHP開(kāi)源開(kāi)發(fā)框架, 基于MIT開(kāi)源許可協(xié)議發(fā)布,不限制商業(yè)使用,以多端互聯(lián)為設(shè)計(jì)理念, 支持的微信公眾號(hào)、小程序、APP客戶(hù)端、移動(dòng)端網(wǎng)站、PC網(wǎng)站等多終端式管理系統(tǒng)。
業(yè)務(wù)經(jīng)理
微信掃描以上二維碼
028-61286886
在線咨詢(xún)
搜索提交之后報(bào)錯(cuò), {"code":0,"msg":"禁止提交,請(qǐng)檢查提交地址是否有誤","data":[]}
說(shuō)明搜索表單代碼的問(wèn)題,代碼發(fā)來(lái)
開(kāi)源是一種精神,但不是義務(wù),幫忙是情分,不幫也不要抱怨,建議大家多研究代碼、多閱讀代碼、多翻閱社區(qū)歷史問(wèn)題!
回復(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是用來(lái)執(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ò)了
不能寫(xiě)post,改為get
參考文檔:《內(nèi)容模塊搜索框?qū)懛ā?/a>
我還以為post,get都可以的
說(shuō)明搜索表單代碼的問(wèn)題,代碼發(fā)來(lái)
開(kāi)源是一種精神,但不是義務(wù),幫忙是情分,不幫也不要抱怨,建議大家多研究代碼、多閱讀代碼、多翻閱社區(qū)歷史問(wèn)題!
回復(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是用來(lái)執(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ò)了
不能寫(xiě)post,改為get
參考文檔:《內(nèi)容模塊搜索框?qū)懛ā?/a>
開(kāi)源是一種精神,但不是義務(wù),幫忙是情分,不幫也不要抱怨,建議大家多研究代碼、多閱讀代碼、多翻閱社區(qū)歷史問(wèn)題!
我還以為post,get都可以的