Colin,
you could do a search on hotscripts and see what that turns up, there
are also the PHP easiForm and PHP easiCaptcha actions for use with
Freeway although the latter action cannot be used with another form
that is not a PHP easiForm form the standard easiCaptcha most probably
could although this would involve a small amount of hand coding to
your form and to the processing script.
The following is for adding the match sum version of easiCaptcha, to
use the image captcha see:
http://www.easibase.com/easiCaptcha/index.php
NOTE: The following does not apply if using the PHP easiCaptcha action
with PHP easiForm as they along with Freeway do all the code
implementation, so you have no hand coding to do.
- You would need to check for the ‘captcha error’ before running the
form through the engine of the form processing script. This could
probably be achieved by using a piece of code like the following and
placing the processing code where ‘// Form processing stuff’ is
written below.
<?php
if ($ef_errors) {
// Do not load the processing side of the script so the email is not
sent if the captcha is not correct
// And the easicaptcha error can be shown to the user
} else {
// Form processing stuff
}
?>
- You would need to place an include for easiCaptcha at the top of
your form
<?php
include_once('easiCaptchaM_config.php');
include_once('easiCaptchaM_a.php');
?>
- You should the add for following at the top of the form elements so
if there is a captcha error the user can be shown some error text.
if ($ef_errors) {
echo $ef_errors;
}
- You need the include for the captcha at the position the captcha is
to appear
<?php
include_once('easiCaptchaM_b.php');
?>
- You will need to upload ioncube loader for your server if not
already available (Server needs to be ioncube compatible).
The link for the standard easiCaptcha is:
http://www.easibase.com/easiCaptcha/index.php
- Your form of course needs to end in .php
If you need any help implementing this then just let me know.
HTH
On Nov 20, 2008, at 12:03 PM, ColinJA wrote:
I have a longstanding client web site which uses the PHP Feedback
Form Action. Of late, there have been some spurious returns from
Eastern Europe, which may be via spambots, but as they are only a
few, could be just manual entry by mischief makers. The problem is
quite manageable at the moment, but I am concerned (if spambots) it
might grow.
Is there an easy way to add a Captcha to the form - I’m happy to
copy/paste or key in a little code, if I’m shown what to do - or is
it something that could be added to a future version of the Action.
I have found one coded possibility here -
http://www.white-hat-web-design.co.uk/articles/php-captcha.php
However I am not sure how this may affect the existing action. Any
help would be appreciated.
Colin
freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options