How to introduce and display the verification code file on the login page

The previous chapter introduced how to make a simple verification code. Define the php file of the verification code as:captcha.php

Now let’s talk about how Introducing the verification code file, our initial login page looks like this:

25.png

The verification code here looks like this.

The code in thelogin.htmlfile is as follows:

Here we need to make some modifications to this code and introduce the verification code file , the modified code is as follows

Then make some modifications to the css style. The HTML DOM Document object in javascript is used here, and the image generated by the verification code of captcha.php is referenced.

The effect achieved after running the code:

26.png




##

Continuing Learning
||
submit Reset Code
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!