CodeIgniter Forums

Full Version: how do we use the Captcha help?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

[eluser]megabyte[/eluser]
I'd like to uswe the captcha helper, but how do we use it with form validation?

El Forum

[eluser]j4zzyh4ck3r[/eluser]
[quote author="megabyte" date="1302684487"]I'd like to uswe the captcha helper, but how do we use it with form validation?[/quote]

Just retrieve the value with $this->input->post('your_field') than compare it with captcha word.

El Forum

[eluser]megabyte[/eluser]
gotcha. So I'll have to either store the word in a session, or encrypt it and store it in a hidden field.


Thanks.