Jump to content

PHP CAPTCHA Possiably sessions...


ionik

Recommended Posts

Ok the captcha  I have created works great generates nice captcha images from a resource file randomly so it will display words nice little example of it here

captchaphpcd3.jpg

 

now the problem that I am having is for some odd reason when i run the check to see if the user has enterd the correct image text it allways displays that the text is incorrect even if it isnt....

 

simply code really...

 

if(strtolower($_POST['robot']) != $_SESSION['captcha'])
{
     ...etc etc
}

 

no this does not work and I cannot fiqure this out...even when i print the two vars they both are exactly the same... stumbled on this one...

Link to comment
https://forums.phpfreaks.com/topic/106171-php-captcha-possiably-sessions/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.