迅睿CMS框架是一款PHP8高性能·簡(jiǎn)單易用的CMS開(kāi)源開(kāi)發(fā)框架,基于MIT開(kāi)源許可協(xié)議發(fā)布,免費(fèi)且不限制商業(yè)使用,是免費(fèi)開(kāi)源的產(chǎn)品,以萬(wàn)端互聯(lián)為設(shè)計(jì)理念,支持的微信公眾號(hào)、小程序、APP客戶(hù)端、移動(dòng)端網(wǎng)站、PC網(wǎng)站等多終端式管理系統(tǒng)。
聯(lián)系官方銷(xiāo)售客服
1835022288
028-61286886
模塊表單,自定義了前臺(tái)表單樣式,提交后有兩個(gè)值寫(xiě)不進(jìn)去
cid和catid寫(xiě)不進(jìn)去。
代碼發(fā)上來(lái),我看看哪里不對(duì)
回復(fù)@迅??蚣芗夹g(shù)-蘇寓
<form action="" class="form-horizontal" method="post" name="myform" id="myform"> {$form} {php $rxcp = dr_string2array($rxcp);} <div class="liangzu2"> <div class="col-md-10" style="display:none"><input class="form-control dr_required " type="text" name="data[title]" id="dr_title" value="{$title}" style="width:300px;" required="required" /><span class="help-block" id="dr_title_tips"></span> </div> <ul> <li> <div class="lz_right"> <div class="jinnian"> <h1>地域名稱(chēng)</h1> <h2><p><input style=" margin-top:15px; height:50px; border:none; font-size:22px; color:#293b5a; width:85%; background:#fff; padding-left:2%; " name="data[rxcp][1][1]" type="text" value="{$rxcp[1][1]}"></p></h2> </div> <div class="qunian"> <h1>產(chǎn)品銷(xiāo)量</h1> <h2><p><input style=" margin-top:15px; height:50px; border:none; font-size:22px; color:#293b5a; width:85%; background:#fff; padding-left:2%; " name="data[rxcp][1][2]" type="text" value="{$rxcp[1][2]}"></p></h2> </div> </div> </li> <li> <div class="lz_right"> <div class="jinnian"> <h1>地域名稱(chēng)</h1> <h2><p><input style=" margin-top:15px; height:50px; border:none; font-size:22px; color:#293b5a; width:85%; background:#fff; padding-left:2%; " name="data[rxcp][2][1]" type="text" value="{$rxcp[2][1]}"></p></h2> </div> <div class="qunian"> <h1>產(chǎn)品銷(xiāo)量</h1> <h2><p><input style=" margin-top:15px; height:50px; border:none; font-size:22px; color:#293b5a; width:85%; background:#fff; padding-left:2%; " name="data[rxcp][2][2]" type="text" value="{$rxcp[2][2]}"></p></h2> </div> </div> </li> <div class="clear"></div> </ul> </div> <div class="clear"></div> <div class="anniu_tj" onclick="dr_ajax_submit('{dr_now_url()}', 'myform', '2000', '{$reply_url}')"></div> </form>
url地址是什么格式
index.php?s=member&app=county&c=rxcp&m=add
這種的
地址沒(méi)對(duì),缺少了cid參數(shù),也就是父文章的id值
回復(fù)@迅??蚣芗夹g(shù)-蘇寓 cid怎么獲取值的
就是模塊表單的父文章,比如你在文章id99下面發(fā)布模塊表單,就傳入?yún)?shù)cid=99
模塊表單必須依賴(lài)于父文章,不能獨(dú)立存在(獨(dú)立存在的叫網(wǎng)站表單了)
回復(fù)@迅??蚣芗夹g(shù)-蘇寓 如何在模塊表單里獲取所屬的文章呢?
獲取不了,需要你手動(dòng)在瀏覽器里面?zhèn)魅隿id參數(shù),沒(méi)有洛奇的途徑
代碼發(fā)上來(lái),我看看哪里不對(duì)
回復(fù)@迅??蚣芗夹g(shù)-蘇寓
url地址是什么格式
回復(fù)@迅??蚣芗夹g(shù)-蘇寓
index.php?s=member&app=county&c=rxcp&m=add
這種的
地址沒(méi)對(duì),缺少了cid參數(shù),也就是父文章的id值
回復(fù)@迅??蚣芗夹g(shù)-蘇寓 cid怎么獲取值的
就是模塊表單的父文章,比如你在文章id99下面發(fā)布模塊表單,就傳入?yún)?shù)cid=99
模塊表單必須依賴(lài)于父文章,不能獨(dú)立存在(獨(dú)立存在的叫網(wǎng)站表單了)
回復(fù)@迅??蚣芗夹g(shù)-蘇寓 如何在模塊表單里獲取所屬的文章呢?
獲取不了,需要你手動(dòng)在瀏覽器里面?zhèn)魅隿id參數(shù),沒(méi)有洛奇的途徑