captchacre kodları
<?php

if ( $_SESSION["user"]["kullaniciDurum"] ) {
	//if logged in, breake image creation process
	exit();
}

$hash=  md5( microtime() * mktime() );

$key= substr($hash, rand(0, 27), 5);

$_SESSION['securekey']= md5( $key );

$bgIndex= rand(1,3);
$background= imagecreatefrompng('images/captchaback_'.$bgIndex.'.png');

$textColor= imagecolorallocatealpha($background, 136, 0, 21, 70);

imagestring($background, 3, 27, 12, $key, $textColor);

header("Cache-Control: no-cache, must-revalidate");
header("Expires: Sat, 26 Jul 1997 05:00:00 GMT");
header("Content-type: image/png");

imagepng($background);

?>
admin login giriş kodu:
<script src="http://code.jquery.com/jquery-1.9.1.js"></script>
<script type="text/javascript">
	$().ready(function(){
		
		$("#captcha").focus();
		
		$('#kullaniciSifre').keydown(function (e){
			if(e.keyCode == 13) $("#admlogin").submit();		
		});
		
		$('#kullaniciAdi').keydown(function (e){
			if(e.keyCode == 13) { $("#kullaniciSifre").focus();		return false; }
		});
		
		$('#captcha').keydown(function (e){
			if(e.keyCode == 13) { $("#kullaniciAdi").focus();		return false; }
		});
		
	});	
</script>

<form action="<?=ASiteAdi?>" method="post" id="admlogin">
	<div id="pnlDiv">
	  <input type="text" name="captcha" id="captcha" class="pnlInpt1"/>
	  <img width="114" height="39" src="?p=captcha">
	  <input type="text" name="kullaniciAdi" id="kullaniciAdi" class="pnlInpt2"/>
	  <input type="password" name="kullaniciSifre" id="kullaniciSifre" class="pnlInpt3"/>
	  <br clear="all">
	  <input type="submit" value="Giriş Yap" class="pnlInpt4" />
	  <input type="hidden" name="p" value="kullaniciGiris" />
	</div>
</form>