ionik Posted May 18, 2008 Share Posted May 18, 2008 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 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 More sharing options...
Cory94bailly Posted May 18, 2008 Share Posted May 18, 2008 Try these scripts I attached.. They work for me. [attachment deleted by admin] Link to comment https://forums.phpfreaks.com/topic/106171-php-captcha-possiably-sessions/#findComment-544207 Share on other sites More sharing options...
PFMaBiSmAd Posted May 18, 2008 Share Posted May 18, 2008 When you print the variables, use var_dump() so you can see the length. It is likely that you have some white space before or after one of them. Link to comment https://forums.phpfreaks.com/topic/106171-php-captcha-possiably-sessions/#findComment-544217 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.