How to validate of CAPTCHA image in PHP?

php , javascript India
  • 12 years ago
    In PHP created captcha image also created one text box want to validate entered text with captcha image text
  • 12 years ago
    whenever we create a captcha image we create it from some code, this code should be stored in some session like
    $_SESSION['captchaCode'] = 'xcv'; now this image which shows 'xcv' in some graphical way is displayed on the form
    when user will enter the code in textbox and press the submit button this code will be matched against this session code like $_SESSION['captchaCode'] == $_POST['captchaTextBox']; i think this will help you

Post a reply

Enter your message below

Sign in or Join us (it's free).

Contribute

Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“Measuring programming progress by lines of code is like measuring aircraft building progress by weight.” - Bill Gates