|
example for api usage
First, apply for a new secure_id.
1. Before displaying a form, call the following URL and save the output as $captcha_id:
http://www.captchair.com/remote/?secure_id=<your_secure_id>&action=new_key
2. In the form (right next to the textfield where the user has to enter the captcha code), you have to display the captcha image with the following source url:
http://www.captchair.com/image/?id=$captcha_id
3. When the form is submitted, you have to pass the code and the $captcha_id to the following URL (which will output "1" if the captcha code is correct):
http://www.captchair.com/remote/?secure_id=<your_secure_id>&action=check_key&id=$captcha_id&code=<entered_code>
|