Original: Sandfish has seen some articles about the verification code for some time, is to generate a random number or symbol, generate a picture, plus some interference pixels (prevent OCR), identified by the user's naked eye Information, enter the form to submit a website verification, and you can use a feature after the verification is successful.
There is also a simple introduction to the implementation method, as follows: Code 1: Php / * * filename: authpage.php * author: hutueworm * Date: 2003-04-28 * @copyleft hutuworm.org * / srand ( (Double) Microtime () * 1000000); // Verify that the user input is uniform IF (ISSET ($ http_post_vars ['Authinput')) {IF ($ http_post_vars ['Authnum'], $ http_post_vars [' Authinput ']) == 0) Echo "Verification success!"; Else Echo "Verification Failure!";} // Generate new four-digit integer verification code while (($ authnum = rand ()% 10000) <1000); ?>