usage host php captcha code Advance Manual Configuration

Base request :
https://captchacode.benny9.my.id/req/{Random_Number}

ex.
https://captchacode.benny9.my.id/req/8

Result Query :
13e156253d85ae7e11fc2fd27debc1cf30781e4b vandam|damvan 41
( img src Your Display Form https://captchacode.benny9.my.id/img/13e156253d85ae7e11fc2fd27debc1cf30781e4b )
( ID Form 13e156253d85ae7e11fc2fd27debc1cf30781e4b )

Right Click, View Source :
13e156253d85ae7e11fc2fd27debc1cf30781e4b
vandam|damvan
41


3 rows : explode "\n" (row)
1. Image ID
2. Value Result Answer
3. Count Captcha
list($imgID, $valueResult, $count_captcha_image) = explode("\n", "https://captchacode.benny9.my.id/req/8");

https://captchacode.benny9.my.id/8.gif = https://captchacode.benny9.my.id/img/$imgID
gifcaca

https://captchacode.benny9.my.id/8.gif
https://captchacode.benny9.my.id/req/8
https://captchacode.benny9.my.id/img/13e156253d85ae7e11fc2fd27debc1cf30781e4b
https://captchacode.benny9.my.id/faluefor/13e156253d85ae7e11fc2fd27debc1cf30781e4b

[A]. req/8 = Request. numeric 1-41.
[B]. img/13e156253d85ae7e11fc2fd27debc1cf30781e4b = Result ID for 8, random 5 ID.
[C]. valuefor/13e156253d85ae7e11fc2fd27debc1cf30781e4b = Result Value for ID image.

Display Result Query :
[A]. 13e156253d85ae7e11fc2fd27debc1cf30781e4b vandam|damvan 41
[B]. gifcaca
[C]. vandam|damvan




<form action="" method="post" enctype="multipart/form-data">

<label for="mail">Name :</label>
<input type="email" name="mail" id="mail">

<label for="password">Password :</label>
<input type="password" name="password" id="password">

<?php
$randCaca=rand(1,41);

$cacaData = "https://captchacode.benny9.my.id/req/=".$randCaca;
$cacaData = file_get_contents($cacaData);

$cacaForm = explode("\n", $cacaData);
$cacaForm = $cacaForm[0]; //ID img

$cacaImg = "https://captchacode.benny9.my.id/img/".$cacaForm; //display img

?>

<label for="caca_val">Anti Bot</label>
<img src="<?php echo $cacaImg;?>" alt="caca">
<input type="hidden" name="caca_form" value="<?php echo $cacaForm;?>">
<input type="text" name="caca_val">

<button type="submit" name="submit_post">
SUBMIT
</button>

</form>



<?php
$err=null;
$msg=null;
if(isset($_POST['submit_post'])){

$mail = addslashes(strip_tags($_POST['mail']));
$password = md5($_POST['password']);

if(!preg_match("/([a-zA-Z0-9_.-])+@(([a-zA-Z0-9-])+.)+([com|be|info|id|org|in|tv|uk])+$/i", $mail)){
$err=true;
$msg="<div class='msg_err'>Error,..<br>Format Email not falid!</div>";
}

if($mail==""){
$err=true;
$msg="<div class='msg_err'>Error,..<br>Blank Mail address!</div>";
}

//recall DB Value validate
$caca_form = $_POST['caca_form'];
$caca_form = "https://captchacode.benny9.my.id/valuefor/".$caca_form;
$caca_form = file_get_contents($caca_form);

list($val1, $val2) = explode("|", $caca_form);


$caca_val = strtolower(str_replace(" ", "", $_POST['caca_val']));

if( ($caca_val=!$val1) || ($caca_val=!$val2) ){
$err=true;
$msg="Err! chapca Answer is <b>".$val1."
";
}

if(!$err){
///////// INSERT-DB
////////RefreshPageRedirect-Success
echo "successfully";
}

}
?>




<!-- Footer ---!>
<?php
if(isset($msg)){
echo $msg;
}
?>



Download : code_sample.php

Demo
Google