Bir dener misiniz?
<?php
function temizle($metin) {
return strtolower(addslashes(htmlspecialchars($metin)));
}
if( stristr($_SERVER["HTTP_REFERER"], "siteadi.com") ) {
; //Usendim kaldirmaya
}
else
die("Olmadı be canım");
if( $_POST["email"] && $_POST["ad_soyad"] && $_POST["telefon"] && $_POST["sehir"] && $_POST["Not"] ) {
$Baglan = @MysqL_connect("localhost", "deneme", "deneme") or die("Bağlanamadık");
@MysqL_select_db("expressl_formbilgileri");
$Sorgu = "INSERT INTO toplu VALUES('', '"
.temizle($_POST["ad_soyad"]) . "', '"
.temizle($_POST["email"]) . "', '"
.temizle($_POST["telefon"]) . "', '"
.temizle($_POST["sehir"]) . "', '"
.temizle($_POST["Not"]) . "', '"
.$_SERVER["HTTP_REFERER"] ."',"
."NOW(), 0 )";
@MysqL_query($Sorgu) or die(mysql_error());
mysql_close();
ini_set("SMTP", "localhost");
$eol = "\r\n";
$headers = 'MIME-Version: 1.0' .$eol;
$headers .= 'Content-type: text/html; charset=windows-1254'.$eol;
$headers .= 'From: Form Bilgisi <info@expresslanguage.net>'.$eol;
$headers .= 'Reply-To: Form Bilgisi <info@expresslanguage.net>'.$eol;
$headers .= 'Return-Path: info@expresslanguage.net'.$eol; // these two to set reply address
$headers .= "Message-ID: <".$now." TheSystem@".$_SERVER['SERVER_NAME'].">".$eol;
$headers .= "X-Mailer: PHP v".phpversion().$eol; // These two to help avoid spam-filters
$Gonderilecek = "Ad Soyad: ". $_POST["ad_soyad"] . "<br>\n"
. "Telefon : ". $_POST["telefon"] . "<br>\n"
. "E-posta : ". $_POST["email"] . "<br>\n"
. "Sehir : ". $_POST["sehir"] . "<br>\n"
. "Not : ". $_POST["Not"] . "<br>\n";
// Yok sana posta mosta ;) // Yeni sistemin serefine ;)
//mail( "deneme@deneme.com", "siteadi.com Form Bilgisi: ". $_POST["ad_soyad"],$Gonderilecek, $headers);
}
else
die("Eksik bilgi");
if( $_POST["redirect"] )
header("Location: ". $_POST["redirect"]);
else
echo "<script type=\"text/javascript\"> history.back();</script>";
?>