迅睿CMS框架是一款PHP8高性能·簡(jiǎn)單易用的CMS開源開發(fā)框架,基于MIT開源許可協(xié)議發(fā)布,免費(fèi)且不限制商業(yè)使用,是免費(fèi)開源的產(chǎn)品,以萬端互聯(lián)為設(shè)計(jì)理念,支持的微信公眾號(hào)、小程序、APP客戶端、移動(dòng)端網(wǎng)站、PC網(wǎng)站等多終端式管理系統(tǒng)。
聯(lián)系官方銷售客服
1835022288
028-61286886
你樣式不對(duì)呢,不是默認(rèn)模板吧?看看你的form哈submit函數(shù)
<form action="" class="form-horizontal form" method="post" name="myform" id="myform">
就是默認(rèn)模板復(fù)制來的。。還沒到提交表單,只是點(diǎn) 發(fā)送驗(yàn)證碼
【林正英】1樓
submit函數(shù)是什么?
<form action="" class="form-horizontal form" method="post" name="myform" id="myform"> {$form} <div class="form-body" style="padding-bottom:0"> {if in_array('username', $register.field)} <div class="form-group" id="dr_row_username"> <label class="col-md-2 control-label">賬號(hào)</label> <div class="col-md-9"> <label><input type="text" class="form-control input-large" name="data[username]" id="dr_username"></label> </div> </div> {/if} {if in_array('email', $register.field)} <div class="form-group " id="dr_row_email"> <label class="col-md-2 control-label">郵箱</label> <div class="col-md-9"> <label><input type="text" class="form-control input-large" name="data[email]" id="dr_email"></label> </div> </div> {/if} {if in_array('phone', $register.field)} <div class="form-group " id="dr_row_phone"> <label class="col-md-2 control-label">手機(jī)號(hào)</label> <div class="col-md-9"> <label><input type="text" class="form-control input-large" name="data[phone]" id="dr_phone"></label> </div> </div> {/if} <div class="form-group " id="dr_row_password"> <label class="col-md-2 control-label">密碼</label> <div class="col-md-9"> <label><input type="password" class="form-control input-large" name="data[password]" id="dr_password"></label> </div> </div> <div class="form-group " id="dr_row_password2"> <label class="col-md-2 control-label">確認(rèn)密碼</label> <div class="col-md-9"> <label><input type="password" class="form-control input-large" name="data[password2]" id="dr_password2"></label> </div> </div> {$myfield} {if $register.code} <div class="form-group" id="dr_row_code"> <label class="col-md-2 control-label">驗(yàn)證碼</label> <div class="col-md-9"> <div class="input-group input-large"> <input class="form-control placeholder-no-fix" type="text" autocomplete="off" id="dr_code" name="code"> <div class="input-group-btn fc-code"> {dr_code(120, 35)} </div> </div> </div> </div> {/if} {if $register.sms} <div class="mui-input-row"> <label>驗(yàn)證碼</label> <input type="text" id="dr_sms" name="data[sms]" class="mui-input-clear mui-input" placeholder="手機(jī)驗(yàn)證碼"> <button class="mui-btn mui-btn-warning but-yzm" type="button" onclick="dr_ajax_url('index.php?s=member&c=api&m=register_code&id='+$('#dr_value').val())">發(fā)送驗(yàn)證碼</button> </div> {/if} <div class="form-actions" style="margin-top:30px"> <label class="col-md-2 control-label"></label> <div class="col-md-9" style="padding-left:5px;"> <label><button type="button" class="btn red" onclick="dr_ajax_member('{dr_now_url()}', 'myform');"> 立即注冊(cè)</button></label> <label class="mt-checkbox mt-checkbox-outline" style="margin-left:20px;"> <input type="checkbox" name="is_protocol" value="1" checked> 我已閱讀并同意 <span></span> </label> <label> <a href="javascript:dr_show_protocol();">《用戶注冊(cè)協(xié)議》</a> </label> </div> </div> </div> </form>
【林正英】3樓
這部分代碼沒有問題,還要看看你頁面上是否存在多個(gè) myform
就一個(gè),但就是不行,
【一副笑臉】5樓
你寫錯(cuò)代碼了,不應(yīng)該是dr_value,用他的方法吧
http://www.finebug.com/7324.html,我是用的他的
dr_value 是用于找回密碼頁面的 賬號(hào)通用字段 吧?
【小劉】7樓
已解決,原因是參考此帖 http://www.finebug.com/7324.html
由于原帖作者之前發(fā)布的代碼截圖不完整,導(dǎo)致功能無法使用,在我反饋后,作者帖出完整代碼后,正常使用了。
你樣式不對(duì)呢,不是默認(rèn)模板吧?看看你的form哈submit函數(shù)
就是默認(rèn)模板復(fù)制來的。。還沒到提交表單,只是點(diǎn) 發(fā)送驗(yàn)證碼
【林正英】1樓
submit函數(shù)是什么?
【林正英】3樓
這部分代碼沒有問題,還要看看你頁面上是否存在多個(gè) myform
就一個(gè),但就是不行,
【一副笑臉】5樓
你寫錯(cuò)代碼了,不應(yīng)該是dr_value,用他的方法吧
http://www.finebug.com/7324.html,我是用的他的
dr_value 是用于找回密碼頁面的 賬號(hào)通用字段 吧?
【小劉】7樓
已解決,原因是參考此帖 http://www.finebug.com/7324.html
由于原帖作者之前發(fā)布的代碼截圖不完整,導(dǎo)致功能無法使用,在我反饋后,作者帖出完整代碼后,正常使用了。