How to validate captcha properly?
问题 I have login form that uses captcha verification. I am having trouble writing validation in my php file that will get error if captcha is not correctly inputted. Currently I have validation that if no captcha is inputted it shows error, but I when I type some wrong captcha the login proceeds and logs in user on to site. Here is my code and any help is appreciated. login.php <?php session_start(); require 'connection.php'; $username_error = ""; $password_error = ""; $captcha_error = ""; if($