"Thinkphp Framework Learning" (1)---thinkphp 3.2.3 Verification code verification using tutorial sharing

Source: Internet
Author: User

Framework version: thinkphp frame thinkphp 3.2.3

Generate Verification Code

Here is the simplest way to generate a verification code:

    1. $Verify = new \Think\Verify();
    2. $Verify->entry();

1. Verification code call and Verification Code configuration parameters, such as: Code at the controller

2. Call the CAPTCHA code at the template as follows:

3. Under admin/common/function.php: Add the following validation code validation function code validation function in the background shared function file

4. The user entered a verification code passed in to the Controller Verification Codes: verification code

5. Small series of exercises to do a small verification code, a bit simple, practiced hand use of OH ~

The above is the TP verification code call, relatively simple, I hope to have this problem of the students have help, thank you for your support!

2017.11.4? Metronic. Produced by: Raizhong | Loyal sign Blog: zb_blog | qq:392277956.

"Thinkphp Framework Learning" (1)---thinkphp 3.2.3 Verification code verification using tutorial sharing

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.