Please i need very simple captcha with no image
it will look like dis . 8F5A5. thanks
it will look like dis . 8F5A5. thanks
$code = strtoupper(substr(md5(time()),0,5));
echo '<div>'.$code.'</div>';
echo '<form method="post" action="some_php_file.php">
<div>
insert the security code from above <input type="text" name="captcha_code" value=""/><input type="hidden" name="captcha_code_check" value="'.$code.'"/>
</div>
</form>
';
if($_POST['captcha_code']!=$_POST['captcha_code_check']) $error = 'Wrong security code';
if(!empty($error)) echo $error;
$hider=rand(1000,100000); <small><b>Enter This Code Below:*</b></small><br/> <b>$hider</b><br/> <input type=\"hidden\" name=\"scode\" value=\"$hider\"/>
<postfield name=\"code\" value=\"$(code)\"/>
$code=htmlspecialchars(stripslashes(trim($code))); $scode=htmlspecialchars(stripslashes(trim($scode))); $pcode=htmlspecialchars(stripslashes(trim($pcode)));
if(($code) != ($scode)) $error='Incorrect security code!<br/>Please Enter Correct Code Shown In Last Page<br/>';
Comment