* BeanieCaptcha *
0.1
* beremaran / nDiphiloné
ABOUT
------------------------
BeanieCaptcha is a simple captcha developed with PHP - JavaScript.
INSTALLATION
------------------------
1) Edit cpt_path in 'cpt_config.php' (in your BeanieCaptcha folder) as your
folder name.
2) Add
<?php include_once("YOUR_BEANIE_CAPTCHA_FOLDER/cpt_header.php"); ?>
to your head section of page that contains the form.
3) Add
onsubmit="return cpt_handler.cpt_ifValidated();"
to your form's <form tag. See Appendix A if you already have something
on onSubmit event.
4) Add
<?php cpt_printCaptcha(); ?>
to where do you want the captcha to be.
Appendix A
------------------------
If you already have something on onSubmit event, you want to modify it like
that:
Before:
onSubmit="functionBlaBla();"
After:
onSubmit="return !!(cpt_handler.cpt_IfValidated() & functionBlaBla());"