Get the App
SLTechnology News&Howtos  ›  Development  › 

How to solve the problem of php verification code unchanged

Shulou Source: shulou.com Published: 2022-06-03 00:59:08 10月04日 Update

This article mainly introduces "how to solve the problem of php Captcha unchanged," in daily operation, I believe many people have doubts on how to solve the problem of php Captcha unchanged, Xiaobian consulted all kinds of information, sorted out simple and easy to use operation methods, hope to answer "how to solve the problem of php Captcha unchanged" doubts helpful! Next, please follow the small series to learn together!

php Captcha unchanged solution: 1, use "_javascript:ckimg();" method to replace a Captcha;2, by "o nclick="this.src ='... "Method implementation Click to change pictures.

Operating environment: Windows 7 system, PHP 7.1 version, DELL G3 computer

php Captcha unchanged how to do?

php Captcha no refresh change (replacement)

test.php

function ckimg(){ document.getElementById('img').src="validateCode2.php? "+new Date().getTime(); }

看不清,请换一张

I can't see it clearly. Please change it.

看不清,点击换图片

The class that produces Captcha, containing some parameters for Captcha generation, such as size, color, symbol type for displaying Captcha

validateCode2.php

At this point, the study of "how to solve the problem of php Captcha unchanged" is over, hoping to solve everyone's doubts. Theory and practice can better match to help everyone learn, go and try it! If you want to continue learning more relevant knowledge, please continue to pay attention to the website, Xiaobian will continue to strive to bring more practical articles for everyone!

Tags: Validation picture interference problem method type background learning function parameter image more canvas color help next three digits method variable Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno vpn Xiaomi NVidia Shulou Tech Info Huawei