<?php $sayi1 = rand(10, 20); $sayi2 = rand(1, 9); $sonuc = $sayi1 + $sayi2 ; ?> <input type= "hidden" name= "sonuc" value= "<? echo $sonuc;?>" /> <p class = "input_block" ><font face= "tahoma" size= "2" ><b><?php echo $sayi1 ; ?> + <?php echo $sayi2 ; ?> = ?</b> (İşleminin Sonucu)</font> <input type= "text" name= "gkodu" id= "gkodu" value= "" size= "22" tabindex= "3" /></p> |
1 2 3 | elseif ( !is_email( $comment_author_email )) wp_die( __( '<strong>ERROR</strong>: please enter a valid email address.' } |
1 2 3 4 5 6 7 8 9 10 | $gkodu = $_POST [ "gkodu" ]; $sonuc = $_POST [ "sonuc" ]; if (! $gkodu ){ wp_die( __('Lutfen Guvenlik Kodunu Yaziniz. <a href= "javascript:history.go(-1)" ><b> << Geri </b></a>') ); } if ( $gkodu != $sonuc ){ wp_die( __('Guvenlik kodunu eksik yada yanlis girdiniz. <a href= "javascript:history.go(-1)" ><b> << Geri </b></a> '.$sonuc.' ve'. $gkodu )); } |
Hiç yorum yok: