Simple Human verification code in php - Mostlikers

27 February, 2014

Simple Human verification code in php

This article related on Human verification code (CAPTCHA). its check to the requiring little human maintenance or intervention in administering the test. CAPTCHA must be taken to correctly identify each character after to submit form value post on database.


so now i make simple verification code generator its generate automatic random code that code and user fill code matching form value post on database otherwise again generate another code.


$msg="Invalide code"
$msg="Your code is correct";
<form name="form" method="post">
<p>Type Below this code <?php $Random_code=rand(); echo$Random_code; ?> </p><br />
<p>Enter the random code<br />
<input type="text" name="code1" title="random code" />
<input type="hidden" name="code" value="<?php echo $Random_code; ?>" />
<p><input type="submit" value="check" title="code check" name="submit"/></p>
<p><?php if(isset($_POST['submit']))
echo $msg; } ?>

No comments:

Post a Comment