Home › Forums › Quform PHP › Solve media captcha validation
- This topic has 5 replies, 2 voices, and was last updated 11 years, 1 month ago by i82fast.
- AuthorPosts
- October 4, 2013 at 8:54 am #6741i82fastParticipant
I already posted this on the item comment page but notice that I’ll get a faster responds here.
I was wondering how I’ll go about to implant solve media. This is the code I put in the php page of the site
<div class="quform-element quform-element-recaptcha">
<div class="quform-spacer">
<div class="quform-input">
<label for="solvemedia">Captcha <span>*</span><?php
include_once 'quform/lib/solvemedialib.php';
echo solvemedia_get_html("your public key");
?>
</label>
</div>
</div>
</div>
Below is the template from solve media to validate the form but I have no clue on how to implant it
require_once("solvemedialib.php");
$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) {
//handle incorrect answer
print "Error: ".$solvemedia_response->error;
}
else {
//process form here
}
a little direction on what I have to do would help greatly
October 5, 2013 at 8:08 am #6752i82fastParticipantI decided to ditch the solve media captcha and go with a honey pot method. How would I go about adding this?
October 5, 2013 at 12:48 pm #6756AllySupport StaffYou don't have permission to view this content. Please log in or register and then verify your purchases to gain access.
October 6, 2013 at 1:36 am #6782i82fastParticipantHello Ally,
Thanks alot for the help this works. I also have one more problem, my auto reply isn’t working. I have set it to true in proccess.php and have added an email address to the autoreplyFrom. I’m using my host email.
October 7, 2013 at 9:39 am #6793AllySupport StaffYou don't have permission to view this content. Please log in or register and then verify your purchases to gain access.
October 7, 2013 at 9:14 pm #6800i82fastParticipantthanks that fixed it
- AuthorPosts
- You must be logged in to reply to this topic.