Home  >  Article  >  Backend Development  >  A brief introduction to the PHP verification code calling method_PHP tutorial

A brief introduction to the PHP verification code calling method_PHP tutorial

WBOY
WBOYOriginal
2016-07-15 13:35:021040browse

Today I will introduce to you about

implementing PHP verification code call in the template

  1. < input name="checkcodestr"
    type ="text" size="15">
  2. < img src="{PHPCMS_PATH}checkcode.
    php"
    id="checkcode" style="cursor:pointer;"
    alt="Verification code, can’t see clearly? Please click to refresh the verification code"
    align="absmiddle"/>

The php code to verify whether the PHP verification code call is correct

  1. checkcode($checkcodestr ,
    $PHPCMS['enableadmincheckcode']
    , $PHP_REFERER);

The function prototype is as follows:

checkcode($checkcode, $enable = 1, $forward = '')

$checkcode is the value entered by the user, $enable is whether the current PHP verification code call is enabled, $forward specifies the verification when the user inputs Jump address after code error.


www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/445925.htmlTechArticleToday I will introduce to you about implementing PHP verification code call in the template input name = checkcodestr type = text size = 15 img src = {PHPCMS_PATH}checkcode. php id = checkcode style =...
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn