blog789
🌱Yeni Üye🌱
- Katılım
- 8 Haz 2009
- Mesajlar
- 10
- Tepkime puanı
- 0
Aşağıdaki script'e nasıl captcha ekleyebilirim ? bir türlü olmadı. Çok denedim.
Kod:
<?php
if ($_SERVER['REQUEST_METHOD'] != 'POST'){
$self = $_SERVER['PHP_SELF'];
?>
<form name="form" method="post" id="third" action="<?php echo $self;?>">
<h1>Bize Ulaşın</h1>
<label for="name"><strong><span class="blue">*</span> isim : </strong></label>
<input id="name" name="name" type="text" class="validate['required','length[3,-1]','nodigit'] textinput" />
<label for="email"><strong><span class="blue">*</span> Email : </strong></label>
<input id="email" name="email" type="text" class="validate['required','length[5,-1]','email'] textinput" />
<label for="site">Website : </label>
<input id="website" name="website" type="text" class="validate['url'] textinput" />
<label for="subject"><strong><span class="blue">*</span> Konu : </strong></label>
<input id="subject" name="subject" type="text" class="validate['required','length[5,-1]'] textinput" />
<label for="msg"><strong><span class="blue">*</span> Mesajiniz : </strong></label>
<textarea id="message" name="message" type="text" class="validate['required','length[15,-1]'] textarea"></textarea>
<label for="spamcheck"><span class="blue">*</span> <acronym title="[ Spam prevention ]"><strong>Kontrol islemi: </acronym> : <span class="blue">2 + 3 = ???</span></strong></label>
<input id="spamcheck" name="spamcheck" type="text" size="5" class="validate['required','number','spamcheck'] textinput_small" />
<br /><br />
<input type="submit" class="buttonSubmit" value="Gonder!" />
<div id="stylesheetTest"></div>
</form>
<?php
} else {
error_reporting(0);
if (mail($to, $subject, $msg, "From: $email\r\nReply-To: $email\r\nReturn-Path: $email\r\n"))
echo nl2br("
<div class=\"MsgSent\">
<h1>Tebrikler!!</h1>
<p>Teşekkürler <b><?=$name;?></b>, Mesajınız Gonderildi!<br /> En kısa sürede cevap alacaksınız...</p>
</div>
");
else
echo "
<div class=\"MsgError\">
<h1>HATA!!</h1>
<p><b><?=$name;?></b>, Mesajınız malesef gönderilemedi. Tekrar deneyin!</p>
</div>";
}
?>
</body>
</html>