Merhaba
Sayfamda, iletişim formuna yazılanları; ip ve tarih bilgilerini ekleyerek veri tabanına kayıt ediyorum..
Bu ietişim formuna Bazen istemediğim (***** adres ve yazılar giriliyor) Bunu nasıl engelleyebilirim.
Yardımcı olursanız memnun olurum.
[PHP]<?
function ipbu () {
$GLOBALS['ziyaretciip'] = getenv("REMOTE_ADDR");
echo "<font size=2 face=verdana>";
echo "$ziyaretciip";
}
?><br>
<? ipbu(); ?>
<?
$kaydet = $HTTP_POST_VARS['kaydet'];
$isim = $HTTP_POST_VARS['isim'];
$email = $HTTP_POST_VARS['email'];
$konu = $HTTP_POST_VARS['konu'];
$mesaj = $HTTP_POST_VARS['mesaj'];
$mesaj = htmlspecialchars($mesaj);
$tarih = $HTTP_POST_VARS['tarih'];
$ip = $HTTP_GET_VARS['$ip'];
if ($kaydet == 1)
{
include 'yol.php';
$tarih = date('r');
$ip = getenv("REMOTE_ADDR");
$yaz = mysql_query("insert into posta values('', '".$isim. "','".$email."','".$konu."','".$mesaj."','".$tarih ."','".$ip."')");
print mysql_error();
echo "<br><br>";
echo'<b>Tarih:</b> ';echo $tarih;echo ' ';
echo'<b>ip:</b> ';echo $ip;echo '<br>';
echo '<b>';echo $isim;echo '</b>';
echo " ";
echo "mesajiniz kayit edildi.";
echo "<br>";
echo "En kisa zamanda cevap vermeye calisacagim";
echo "<br>";
?>
<br><a href="index.php" style="font-size: 12px; font-family: Verdana; color: white; background-color: #6699ff; text-decoration: none;"> Ana Sayfa </a>
<a href="index.php?mode=posta" style="font-size: 12px; font-family: Verdana; color: white; background-color: #6699ff; text-decoration: none;"> Geri Don </a>
<br><br>
<?
}
else
{
?>
<form action="iletisim.php" method="POST">
<table width="400" border="0" cellspacing="0" cellpadding="0">
<tr><td width="150"><font face="Verdana" size="2" color="Black">Isim:</font></td>
<td width="250"><input type="Text" name="isim" size="35"></td></tr>
<tr><td><font face="Verdana" size="2" color="Black">e-mail:</font></td>
<td><input type="Text" name="email" size="25"></td></tr>
<tr><td width="150"><font face="Verdana" size="2" color="Black">Konu:</font></td>
<td width="250"><input type="Text" name="konu" size="50"></td></tr>
<tr><td><font face="Verdana" size="2" color="Black">Mesaj:</font></td>
<td><textarea name="mesaj" cols="35" rows="10"></textarea></td></tr>
<tr><td><font face="Verdana" size="2" color="Black"></font> </td>
<td>
<input type="hidden" name="kaydet" value="1" />
<input type="Submit" name="Send Mail" value="Gonder"> <input type="Reset" name="Reset" value="Temizle"></td></tr>
</table></form>
<br>
<?
}
?>
iletişim formunu temiz olarak vt'ye kayıt etmek.
3
●796
- 30-09-2007, 21:36:05Gelen yazıları kontrol edip temiz olarak vt'ye kayıt etmek istiyorum...
Gelen mesajın bir tanesi, (kısaltıp verdim)
Cost you an arm and a leg - exlusive super sexy ass exlusive super sexy ass fine latin ass fuck fine latin ass fuck top of nice ass parade top of nice ass parade take ass hole massage take ass hole massage at the ass hot woman at the ass hot woman secret huge fat ass