ppypp伦理天堂,91手机在线视频,免费在线观看黄色毛片,夜夜穞天天穞狠狠穞AV美女按摩

聯系官方銷售客服

1835022288

028-61286886

投訴 分享 網站表單提交前,進行短信驗證碼防止惡意提交信息,提交表單前進行驗證碼短信操作 105 0

網站表單提交前進行短信驗證碼防止惡意提交信息,提交表單前進行驗證碼短信操作。

www.zbshanke.com文檔:http://www.zbshanke.com/doc/793.html

表單為例開發



然后在自定義字段里面,創建一個手機號碼的字段:例如



這個表單叫test,他的前端提交控制器文件名是:xunruicms/dayrui/App/Form/Controllers/Test.php

打開這個文件

本部分內容設定了隱藏,需要回復后才能看到

然后,在表單提交模板里面加一句

<div class="form-group" id="dr_row_code">
 <label class="col-md-2 control-label">圖片驗證</label>
 <div class="col-md-10">
  <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>
<div class="form-group" id="dr_row_sms">
 <label class="col-md-2 control-label">短信驗證</label>
 <div class="col-md-10">
  <div class="input-group input-large">
   <input class="form-control placeholder-no-fix" type="text" autocomplete="off" id="dr_sms" name="sms">
   <div class="input-group-btn">
    <button class="btn blue" onclick="dr_ajax_url('/index.php?s=member&c=api&m=send_code&&code='+$('#dr_code').val()+'&id='+$('#dr_shoujihao').val())" type="button">獲取手機驗證碼</button>
   </div>
  </div>
 </div>
</div>

其中這句話是字段的名稱

dr_shoujihao

這樣就完畢了,個人親測有效的!

解決方案