🔔 Çevrimdışı bildirim almak ister misiniz?
Bir konuya etiketlendiğinizde, özel mesaj aldığınızda, bir mesajınız alıntılandığında forumda olmasanız bile anlık bildirim almak için lütfen izni verin.
PHP Kod: Kodu kopyalamak için üzerine çift tıklayın!
$error_message="Tüm boş alanları doldurmalısınız."; // Change this error message to whatever you wish. $youremailaddress="SENİN-ADRESİN@SİTEN.COM"; // the email address of where the message will be sent ?> <style type="text/css"> <!-- .b{font-family:Arial; font-size:9px; color:#6D6D6D; text-decoration:none} .b1{font-family:Arial; font-size:11px; color:#7D7D7D; text-decoration:none} .b2{font-family:Arial; font-size:14px; color:#7D7D7D; text-decoration:none}} --> </style>
<?php if ($submit) { // if the submit button was pressed if($name && $subject && $email && $message ) { // if all fields were completed // check if email syntax is valid if(!eregi("^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})$", $email) ) { echo "Lütfen doğru mail girin!"; } else { mail("$youremailaddress","$subject","$message","From: $name <$email>") or die("email error");
echo "Mesajınız basarı ile gönderildi."; // if all went well, display message was sent } // end of is email valid or not
} // end of if all fields were completed else { echo "$error_message<BR>"; // if not all were filled in, display error message }