When someone registers in your website, send him/her an email with a verification code and show a form to enter the code in your website.

User must enter the verification code in that form to verify his email.

Only verified users will be allowed to login.

Source code:
https://adnan-tech.com/how-to-verify-email-with-a-verification-code-php-mysql/

#php #mysql

How to Verify Email with A Verification Code - PHP & MySQL
3.05 GEEK