<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ThinkChat2.0新版上線,更智能更精彩,支持會話、畫圖、視頻、閱讀、搜索等,送10W Token,即刻開啟你的AI之旅 廣告
                圖形驗證碼的制作看似困難,實則非常簡單,因為cmf為我們提供了驗證碼的標簽,都封裝好了。 cmf官方文檔中給我們寫的十分詳細了 [驗證碼官方文檔](http://www.hmoore.net/thinkcmf/doc/266558) 前端調用 \plugins\guestbook\view\widget.html ~~~ <div class="contact-form"> <form id="guestbook-form" class="no-mar" role="form"> <div class="form-group sy-guestbook"> <label for="name">姓名<span class="require-item">*</span></label> <input type="text" class="form-control" id="name" name="name" placeholder=""> <i class="fa fa-user form-control-guestbook"></i> </div> //這里是新增驗證碼代碼---start <div class="form-group sy-guestbook"> <label for="message">驗證<span class="require-item">*</span></label> <div class="sy-guestbook"> <input type="text" name="captcha" placeholder="驗證碼" class="form-control captcha" style="width: 170px;float: left;margin-right: 30px"> <captcha height="38" width="160" font-size="20"/> </div> </div> <div class="g-recaptcha"></div> //這里是新增驗證碼代碼---end <input id="guestbook-submit" value="提交" class="submit-button btn btn-default"> </form> </div> ~~~ 后端驗證 IndexController.php ~~~ /** * 提交留言 */ public function addMsg() { *~~~* // 驗證碼校驗 if (!cmf_captcha_check($data['captcha'])) { $this->error("驗證碼錯誤"); } *~~~* } ~~~ ![](https://box.kancloud.cn/964a167d52b0da6402a507874c9df0b7_981x344.png) > 首先感謝WelkinVan 他寫的《ThinkCMF5從入門到精通》給了我很多幫助 > 點擊去《[ThinkCMF5從入門到精通](http://www.hmoore.net/welkinvan/thinkcmf5)》 >
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看