迅睿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客戶端、移動(dòng)端網(wǎng)站、PC網(wǎng)站等多終端式管理系統(tǒng)。
聯(lián)系官方銷售客服
1835022288
028-61286886
原網(wǎng)站 織夢(mèng)網(wǎng)站 有個(gè)彈窗留言 如何改成迅睿的
織夢(mèng)端<form action="/plus/diy.php" enctype="multipart/form-data" method="post">
<input type="hidden" name="action" value="post" />
<input type="hidden" name="diyid" value="1" />
<input type="hidden" name="do" value="2" />
<input type="text" style="width:290px;" placeholder="請(qǐng)輸入手機(jī)號(hào)碼:" name="sjh" >
<button type="submit" id="sendMsg" name="submit">確定</button><input type="hidden" name="dede_fields" value="sjh,text" />
<input type="hidden" name="dede_fieldshash" value="c69152b2f6f0345cc11e5187f162d9da" />
</form>
<div class="guanbi">+</div>
全局網(wǎng)站表單可以實(shí)現(xiàn)
用了全局網(wǎng)站表單 替換了代碼 但是沒(méi)法提交信息
用表單功能,ajax能實(shí)現(xiàn)
表單頭上面要添加一行
{php extract(dr_get_form_post_value('liuyan'))}
liuyan是網(wǎng)站表單英文名稱
相關(guān)文檔:外部頁(yè)面調(diào)用網(wǎng)站表單提交項(xiàng)目,標(biāo)簽調(diào)用,PHP開(kāi)源CMS系統(tǒng)幫助文檔 (xunruicms.com)
全局網(wǎng)站表單創(chuàng)建一個(gè)通name的表單,制作方法和織夢(mèng)的表單基本相同,注意電話的name需加上data[name]。在頂部添加/api/language/zh-cn/lang.js /static/assets/global/plugins/jquery.min.js /static/assets/js/cms.js 這三個(gè)js文件就可以提交了
這個(gè)留言 是在 show.html 內(nèi)容頁(yè)面
<!-- 引入系統(tǒng)關(guān)鍵js(表單驗(yàn)證用的) --> <script type="text/javascript">var is_mobile_cms = '{IS_MOBILE}';</script> <script src="{LANG_PATH}lang.js" type="text/javascript"></script> <script src="{THEME_PATH}assets/global/plugins/jquery.min.js" type="text/javascript"> </script><script src="{THEME_PATH}assets/js/cms.js" type="text/javascript"></script> <!-- 系統(tǒng)關(guān)鍵js結(jié)束 --> {php extract(dr_get_form_post_value('zxzx'))} <!--zxzx換成你的表單名--> <form action="" method="post" name="myforma" id="myforma"> {$form} <input type="text" name="data[title]" id="dr_title" value="咨詢信息" style="display:none;"> <!--表單自帶的標(biāo)題--> <input type="text" name="data[mtel]" id="dr_mtel" value="" class="input-text email email-newsletter" placeholder="手機(jī)號(hào)碼"> <!--你新加的手機(jī)號(hào)碼字段--> <button class="button btn-submit submit-newsletter" type="button" onclick="dr_ajax_submit('{$post_url}', 'myforma', '2000', '{$rt_url}')">提交信息</button> </form> <!--標(biāo)題和號(hào)碼字段和你織夢(mèng)做表單一樣,創(chuàng)建后預(yù)覽然后復(fù)制字段的參數(shù)過(guò)來(lái)就行--> <!--提交按鈕 type記得是button-->
織夢(mèng)端<form action="/plus/diy.php" enctype="multipart/form-data" method="post">
<input type="hidden" name="action" value="post" />
<input type="hidden" name="diyid" value="1" />
<input type="hidden" name="do" value="2" />
<input type="text" style="width:290px;" placeholder="請(qǐng)輸入手機(jī)號(hào)碼:" name="sjh" >
<button type="submit" id="sendMsg" name="submit">確定</button><input type="hidden" name="dede_fields" value="sjh,text" />
<input type="hidden" name="dede_fieldshash" value="c69152b2f6f0345cc11e5187f162d9da" />
</form>
<div class="guanbi">+</div>
全局網(wǎng)站表單可以實(shí)現(xiàn)
用了全局網(wǎng)站表單 替換了代碼 但是沒(méi)法提交信息
用表單功能,ajax能實(shí)現(xiàn)
表單頭上面要添加一行
liuyan是網(wǎng)站表單英文名稱
相關(guān)文檔:外部頁(yè)面調(diào)用網(wǎng)站表單提交項(xiàng)目,標(biāo)簽調(diào)用,PHP開(kāi)源CMS系統(tǒng)幫助文檔 (xunruicms.com)
全局網(wǎng)站表單創(chuàng)建一個(gè)通name的表單,制作方法和織夢(mèng)的表單基本相同,注意電話的name需加上data[name]。在頂部添加/api/language/zh-cn/lang.js /static/assets/global/plugins/jquery.min.js /static/assets/js/cms.js 這三個(gè)js文件就可以提交了
這個(gè)留言 是在 show.html 內(nèi)容頁(yè)面