Jump to content
xisto Community
Branigan

Insert Captcha In My Php Form I cant to insert some code in php form

Recommended Posts

An easy way to do capatcha is to ask a simple but logical question like, "What is 2 + 2". or "What letter comes after B?". Then lets say the you choes the 2 + 2 question, you were using post, and it's field name is captcha. Use the code to find out if they did it correctly.

<?php$captcha = $_POST['captcha'];if($captcha == 4) {echo 'Captcha Correct';} else {echo 'Captcha Incorrect';}?>
Hope that helps!

Share this post


Link to post
Share on other sites

You can also use the opensource script from http://www.phpcaptcha.org/

Securimage is an open-source free PHP CAPTCHA script for generating complex images and CAPTCHA codes to protect forms from spam and abuse. It can be easily added into existing forms on your website to provide protection from spam bots. It can run on most any webserver as long as you have PHP installed, and GD support within PHP. Securimage does everything from generating the CAPTCHA images to validating the typed code. Audible codes can be streamed to the browser with Flash for the vision impaired.

They also provide a quickstart guide and live example sites.

Share this post


Link to post
Share on other sites

I prefer using reCAPTCHA: https://www.google.com/recaptcha/intro/index.html (apparently I just found out they've been acquired by Google).

 

I don't think it is open source but every time a CAPTCHA gets solved it helps to digitize New York Times archives. And it's really easy to implement as well.

Share this post


Link to post
Share on other sites

ah sorry I can't help you then. I've never used reCaptcha, I just don't feel like it fits in with the aesthetics of my sites. Plus I always prefer using my own stuff so I know exactly what's going on with it.

Share this post


Link to post
Share on other sites

recaptcha used to be open source and now it was part of google systems in effort to speed up and fix digitizing problems with books. it was now being served as a service and controlled via API calls to google just like the other google services. i used recaptcha twice and never used it on persoal sites that i created, i use homemade scripts for them.there are methods to remove the box and the logo below the image all with an API theming call.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | 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.