Hi, this might be a stupid question to ask, I have integrated Solvemedia into my faucet, but after a couple of months I logged into my solvemedia account today and saw that I have around 700,000 impressions, but only 30000+ solved type in's
Guess the solve media integration was wrong for quite some time. The captcha is displayed, but just a dummy, even without entering the captcha the submit button is executed.
This is the code I am using:
<?php
require_once("solvemedialib.php");
if(isset($_POST) && !empty($_POST)){
$privkey="your_private_key";
$hashkey="your_hash_key";
$solvemedia_response = solvemedia_check_answer($privkey,
$_SERVER["REMOTE_ADDR"],
$_POST["adcopy_challenge"],
$_POST["adcopy_response"],
$hashkey);
if (!$solvemedia_response->is_valid) {
print "<div class='alert alert-danger'> Error: ".$solvemedia_response->error."</div>";
}
else {
print "<div class='alert alert-success'> Successfully entered </div>";
}
}
?>
<form action="<?php echo $_SERVER["PHP_SELF"];?>" method="post">
<?php
echo solvemedia_get_html("your_challenge_key"); //outputs the widget
?>
<input type="submit" value="submit" class="btn btn-danger" />
</form>
I do not think there is anything wrong with this code, but since I have no clue why the submit button is getting executed without captcha submission, it would be greatly appreciated if someone could point out what is causing this. Thank you