How To use Two Or more Google Captcha code on the same page




I have flipped through many pages online to solve this problem but all i could see is cumbersome and long lines of codes.
Anyway after proper personal evaluation , i was able to discover this solution.

Requirement : PHP OR SIMILAR WEB SCRIPTING LANGUAGE

Lets assume you have a login and registration form on the same page and both requires captcha codes

steps

1.Add query to all links leading to that page. the query starts from the question mark after the link
e.g http://login.php?type=login
  http://login.php?type=register

<?php

$type=$_GET['type'];
if($type=="login"){
echo '   Integration code';
}

if($type=="register"){
echo '   Integration code';
}

if($type!="register" || $type!="register"){
echo 'PLEASE USE THE APPROPRIATE LINK';
die(' redirect user to the relevant page on your website');
}


?>

Explanation :

Originally No captcha code will be displayed on the page , but the query of the string will determine the one to be shown which will now be one at a time  as  originally programmed by google



The last part is to prevent people bypassing the captcha code.

Hope this is useful

follow us on :
facebook

Comments