I have designed the comments box for getting comments. Instead of using captcha plugins, i have prepared custom captcha with 5 digit number. When I submit the details, still I getting error page. I have checked various sites in Google but could not find the correct answer.
1. comments.html - Comment box for comments
2. captcha.php - Custom captcha with 5 digit code
3. submit.php - for processing the code
4. error.html - error page for wrong entry
5. thank.html - Page on submitting successful
I am unable to sort-out where the mistake is. Kindly help me in this regards.
The sources codes of comments.html and submit.php is given below.
You need session_start() at the very top of your submit.php
以上就是captcha code not working的详细内容，更多请关注web前端其它相关文章！