I have made CAPTCHA, but how to check if user typed correct?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
kaisellgren
DevNet Resident
Posts: 1675
Joined: Sat Jan 07, 2006 5:52 am
Location: Lahti, Finland.

I have made CAPTCHA, but how to check if user typed correct?

Post by kaisellgren »

Hi,

I have made wonderful captcha, but I need to know how do I do the checking?

The text in the captcha is $captchacode, and I need to check wheather it is the same than what usertyped. But how do I do that? If user types the captcha and presses Submit, then the $captchacode variable will be unset??
Charles256
DevNet Resident
Posts: 1375
Joined: Fri Sep 16, 2005 9:06 pm

Post by Charles256 »

you could always make it a session variable if all else fails :-D
Post Reply