<% if(request.getParameter("submit")!=null){ //First get the real 4 numbers on the picture of the verification code itself String rcode = (String)session.getAttribute("rand"); //Get the verification code entered by the user String code = request.getParameter("code"); //Determine whether the user input is correct if(rcode.equals(code)){ %> The verification code is correct! ! <% }else{ %> The verification code is incorrect! ! <% }
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