954,561 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Validating an Image of Characters (COPA)

Hi guys

You know when you enter a registration page with a textbox saying enter the characters that corespond to the image. I heard its called COPA or something.

Anyone has any tutorials on how to make a page like this?

Thankyou, Regards X

OmniX
Practically a Master Poster
656 posts since Dec 2007
Reputation Points: 31
Solved Threads: 10
 

hello..
that is CAPTCHA ..means creating dynamic number on an image...
It is used to prevent spam abuse on the websites
For more information:
http://www.webcheatsheet.com/PHP/create_captcha_protection.php

Shanti C
Posting Virtuoso
1,642 posts since Jul 2008
Reputation Points: 137
Solved Threads: 162
 

Shanti you might be able to help me or if anyone else can.

I did the below tutorial (which was very helpful btw) but I was unable to produce the CAPTCHA within an html page it becomes as JARGAN instead of an IMAGE (I can get an image).

It may also help to mention I have the php and html all in the same page.

OmniX
Practically a Master Poster
656 posts since Dec 2007
Reputation Points: 31
Solved Threads: 10
 

What is a JARGAN?

In order for CAPTCHA to work, you need to have GD support in PHP enabled on your server. It has been included with PHP since version 4.3, but it might not be enabled.

You might not have that with free hosting services. If you are not seeing CAPTCHA characters, then check with your hosting company about GD support.

TopDogger
Junior Poster in Training
87 posts since Aug 2005
Reputation Points: 15
Solved Threads: 5
 

Try http://recaptcha.net for a free captcha library. Using this library aides in the digitizing of books. Also, the image generation is handled by their servers, not yours.

scru
Posting Virtuoso
1,629 posts since Feb 2007
Reputation Points: 975
Solved Threads: 140
 

Make sure you have the GD library installed/configured on your server to use the first example.

Will Gresham
Master Poster
755 posts since May 2008
Reputation Points: 96
Solved Threads: 125
 

Thanks guys for the information.
But I found the solution in another tutorial.

I didnt realize you cannot mix the php code to generate an image and the html code.

It has to be imported using an img tag.

Anyways problem solved and I just gota try getting it working now.

Thanks, Regards X

OmniX
Practically a Master Poster
656 posts since Dec 2007
Reputation Points: 31
Solved Threads: 10
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You