Posts claviska - simple-php-captcha
Post
Cancel

claviska - simple-php-captcha

http://github.com/claviska/simple-php-captcha or http://labs.abeautifulsite.net/simple-php-captcha/

so we have

1
2
3
4
5
6
<?php contact.php="" if="" a="" session="" is="" not="" created="" if(!isset($_session))="" session_start();="" create="" it="" ref="" the="" lib="" include("captcha/simple-php-captcha.php");="" store="" to="" a="" session="" variable="" $_session['captcha']="simple_php_captcha();"?>

<form id="contact_form" action="contact_send.php" method="POST">
  ![](<?=$_session[)??>'>
  <input name="captcha_" class="form-control" style="float:right;width:100px" maxlength="10" id="captcha_" required=""> 
</form>

js //contact_send.php <?php if(!isset($_session))="" session_start();="" if="" (!isset($_post["contact_name"])="" ||="" !isset($_post["contact_mail"])="" ||="" !isset($_post["contact_message"])="" ||="" !isset($_post["captcha_"])="" ||="" !isset($_session['captcha']['code']))="" die("error="" 0x003");="" case="" insensitive="" comparison="" if="" (strtolower($_post["captcha_"])="" !="strtolower($_SESSION['captcha']['code']))" die("error="" 0x004");=""=”” similar=”” -=””?>http://www.phpcaptcha.org/ js only - https://www.pipiscrew.com/2015/08/js-10-very-useful-jquery-captcha-plugins/

origin - http://www.pipiscrew.com/?p=3404 php-claviska-simple-php-captcha

This post is licensed under CC BY 4.0 by the author.
Contents

Trending Tags