Are You a Human CAPTCHA PHP

Does anybody know how to get “Are You a Human CAPTCHA” to work in Freeway?

I would like to add ‘Are You a Human’ to my existing forms.

I have followed their instructions:(http://portal.areyouahuman.com/installation/php

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.

http://areyouahuman.com


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

My page has a form already

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.

More info required.

David


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

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:

  1. 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"); ?>
  1. 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."; } } ?>
  1. 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(); ?>

Any ideas where Steps 2&3 should go?


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options