Download Latest Version beaniecaptcha-0.1.zip (1.3 MB)
Email in envelope

Get an email when there's a new version of BeanieCaptcha

Home
Name Modified Size InfoDownloads / Week
README 2015-04-15 1.1 kB
beaniecaptcha-0.1.zip 2015-04-15 1.3 MB
Totals: 2 Items   1.3 MB 0
 * 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());"
Source: README, updated 2015-04-15