but get stuck when I get to the “How to Install” section.
where do I put the code?
My page has a form already, so I don’t see where it should go apart from adding a html markup or inserting the code before head & so on.
I have tried contacting their support but they no nothing about Freeway, so no help there.
How have you created your Form and what are you using to process it?
This will determine how you integrate their Captcha - if you are using the PHPFF or SendForm actions this might be tricky as you may have to hack the action.
Thanks for your Help David. the form was created in Freeway with the built in tools & I have used the NMS FormMail Version 3.14c1 to process. The FormMail file and all the php files (from areyouhuman) are in the cgi bin.
I have more info from areyouhuman now. Step 1 was easy to follow but Steps 2&3 I’m not sure where the code should go in Freeway.
This is what they told me to do:
Place this code before the section. You will need to add the path for “ayah.php” if that file is not stored in the same directory as your form.
<?php
require_once("ayah.php");
?>
Place this code anywhere on your page, replacing “my_submit_button_name” with the name of your submit button. You can also customize what happens when the form is or is not passed.
<?php
$ayah = new AYAH();
// Check to see if the user has submitted the form. You will need to replace
// 'my_submit_button_name' with the name of your 'Submit' button.
if (array_key_exists('my_submit_button_name', $_POST))
{
// Use the AYAH object to see if the user passed or failed the game.
$score = $ayah->scoreResult();
if ($score)
{
// This happens if the user passes the game. In this case,
// we're just displaying a congratulatory message.
echo "Congratulations: you are a human!";
}
else
{
// This happens if the user does not pass the game.
echo "Sorry, but we were not able to verify you as human. Please try again.";
}
}
?>
Place this code inside your form before your submit button.
<?php
// Use the AYAH object to get the HTML code needed to
// load and run PlayThru. You should place this code
// directly before your 'Submit' button.
echo $ayah->getPublisherHTML();
?>