迅睿CMS框架是一款PHP8高性能·簡單易用的CMS開源開發(fā)框架,基于MIT開源許可協(xié)議發(fā)布,免費且不限制商業(yè)使用,是免費開源的產(chǎn)品,以萬端互聯(lián)為設計理念,支持的微信公眾號、小程序、APP客戶端、移動端網(wǎng)站、PC網(wǎng)站等多終端式管理系統(tǒng)。
聯(lián)系官方銷售客服
1835022288
028-61286886
原網(wǎng)站 織夢網(wǎ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="請輸入手機號碼:" 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)站表單可以實現(xiàn)
用了全局網(wǎng)站表單 替換了代碼 但是沒法提交信息
用表單功能,ajax能實現(xiàn)
表單頭上面要添加一行
{php extract(dr_get_form_post_value('liuyan'))}
liuyan是網(wǎng)站表單英文名稱
相關文檔:外部頁面調用網(wǎng)站表單提交項目,標簽調用,PHP開源CMS系統(tǒng)幫助文檔 (xunruicms.com)
全局網(wǎng)站表單創(chuàng)建一個通name的表單,制作方法和織夢的表單基本相同,注意電話的name需加上data[name]。在頂部添加/api/language/zh-cn/lang.js /static/assets/global/plugins/jquery.min.js /static/assets/js/cms.js 這三個js文件就可以提交了
這個留言 是在 show.html 內容頁面
<!-- 引入系統(tǒng)關鍵js(表單驗證用的) --> <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)關鍵js結束 --> {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;"> <!--表單自帶的標題--> <input type="text" name="data[mtel]" id="dr_mtel" value="" class="input-text email email-newsletter" placeholder="手機號碼"> <!--你新加的手機號碼字段--> <button class="button btn-submit submit-newsletter" type="button" onclick="dr_ajax_submit('{$post_url}', 'myforma', '2000', '{$rt_url}')">提交信息</button> </form> <!--標題和號碼字段和你織夢做表單一樣,創(chuàng)建后預覽然后復制字段的參數(shù)過來就行--> <!--提交按鈕 type記得是button-->
織夢端<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="請輸入手機號碼:" 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)站表單可以實現(xiàn)
用了全局網(wǎng)站表單 替換了代碼 但是沒法提交信息
用表單功能,ajax能實現(xiàn)
表單頭上面要添加一行
liuyan是網(wǎng)站表單英文名稱
相關文檔:外部頁面調用網(wǎng)站表單提交項目,標簽調用,PHP開源CMS系統(tǒng)幫助文檔 (xunruicms.com)
全局網(wǎng)站表單創(chuàng)建一個通name的表單,制作方法和織夢的表單基本相同,注意電話的name需加上data[name]。在頂部添加/api/language/zh-cn/lang.js /static/assets/global/plugins/jquery.min.js /static/assets/js/cms.js 這三個js文件就可以提交了
這個留言 是在 show.html 內容頁面