迅睿開源框架是一款PHP8高性能·簡單易用的PHP開源開發(fā)框架, 基于MIT開源許可協(xié)議發(fā)布,不限制商業(yè)使用,以多端互聯(lián)為設(shè)計理念, 支持的微信公眾號、小程序、APP客戶端、移動端網(wǎng)站、PC網(wǎng)站等多終端式管理系統(tǒng)。
業(yè)務(wù)經(jīng)理
微信掃描以上二維碼
028-61286886
技術(shù)咨詢
模塊表單,自定義了前臺表單樣式,提交后有兩個值寫不進(jìn)去
cid和catid寫不進(jìn)去。
代碼發(fā)上來,我看看哪里不對
開源是一種精神,但不是義務(wù),幫忙是情分,不幫也不要抱怨,建議大家多研究代碼、多閱讀代碼、多翻閱社區(qū)歷史問題!
回復(fù)@迅睿框架技術(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>地域名稱</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)品銷量</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>地域名稱</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)品銷量</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地址是什么格式
回復(fù)@迅??蚣芗夹g(shù)-蘇寓
index.php?s=member&app=county&c=rxcp&m=add
這種的
地址沒對,缺少了cid參數(shù),也就是父文章的id值
回復(fù)@迅??蚣芗夹g(shù)-蘇寓 cid怎么獲取值的
就是模塊表單的父文章,比如你在文章id99下面發(fā)布模塊表單,就傳入?yún)?shù)cid=99
模塊表單必須依賴于父文章,不能獨立存在(獨立存在的叫網(wǎng)站表單了)
回復(fù)@迅??蚣芗夹g(shù)-蘇寓 如何在模塊表單里獲取所屬的文章呢?
獲取不了,需要你手動在瀏覽器里面?zhèn)魅隿id參數(shù),沒有洛奇的途徑
代碼發(fā)上來,我看看哪里不對
開源是一種精神,但不是義務(wù),幫忙是情分,不幫也不要抱怨,建議大家多研究代碼、多閱讀代碼、多翻閱社區(qū)歷史問題!
回復(fù)@迅睿框架技術(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>地域名稱</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)品銷量</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>地域名稱</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)品銷量</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地址是什么格式
開源是一種精神,但不是義務(wù),幫忙是情分,不幫也不要抱怨,建議大家多研究代碼、多閱讀代碼、多翻閱社區(qū)歷史問題!
回復(fù)@迅??蚣芗夹g(shù)-蘇寓
index.php?s=member&app=county&c=rxcp&m=add
這種的
地址沒對,缺少了cid參數(shù),也就是父文章的id值
開源是一種精神,但不是義務(wù),幫忙是情分,不幫也不要抱怨,建議大家多研究代碼、多閱讀代碼、多翻閱社區(qū)歷史問題!
回復(fù)@迅??蚣芗夹g(shù)-蘇寓 cid怎么獲取值的
就是模塊表單的父文章,比如你在文章id99下面發(fā)布模塊表單,就傳入?yún)?shù)cid=99
模塊表單必須依賴于父文章,不能獨立存在(獨立存在的叫網(wǎng)站表單了)
開源是一種精神,但不是義務(wù),幫忙是情分,不幫也不要抱怨,建議大家多研究代碼、多閱讀代碼、多翻閱社區(qū)歷史問題!
回復(fù)@迅??蚣芗夹g(shù)-蘇寓 如何在模塊表單里獲取所屬的文章呢?
獲取不了,需要你手動在瀏覽器里面?zhèn)魅隿id參數(shù),沒有洛奇的途徑
開源是一種精神,但不是義務(wù),幫忙是情分,不幫也不要抱怨,建議大家多研究代碼、多閱讀代碼、多翻閱社區(qū)歷史問題!