İLETİŞİM
< ?
/*********************************************************************************
* This script was created by Melody Mayberry. *
* http://www.melbell.com *
* *
* Feel free to edit the script as you see fit but PLEASE leave this comment in. *
* You are welcome to add your own line to the comment showing the changes you *
* have made. *
* *
* Feel free to email me and let me know if you are using, I'd like to see my *
* script in action on someone else's site! :) You can find my contact *
* information at the website above! *
* *
*********************************************************************************/
// DO NOT MESS WITH THESE TWO LINES
$subject_array = array();
$recipient_array = array();
///////////////////////////////////
$this_script = "emailform.php"; // The name of THIS file, if you change it.
// Edit only what's between the quotation marks in the below lines.
// These will be the subjects that your users can choose from
// You can have as many as you want.
// Each one must be set up like so:
// $subject_array[] = "What You Want This Choice To Be";
// Make sure to remove empty ones that you aren't using. Just delete the entire line.
$subject_array[] = "Haber Merkezi";
$subject_array[] = "Reklam";
$subject_array[] = "Halkla İlişkiler";
$subject_array[] = "Yönetim";
$subject_array[] = "Şikayet";
$subject_array[] = "Öneri";
// Edit only what's between the quotation marks in the below lines.
// These lines contain the various people that can be contacted via your form.
// You can have as many as you want.
// Each one must be set up like so:
// $recipient_array["UNIQUE Short Name"] = "email@email.com";
// The "UNIQUE Short Name" will be shown in the select box.
// This allows the actual email address to be hidden from the user.
// Make sure to remove empty ones that you aren't using. Just delete the entire line.
$recipient_array["Haber İhbar"] = "bilgi@urfahaber.net";
$recipient_array["Reklam"] = "bilgi@urfahaber.net";
$recipient_array["Halkla İlişkiler"] = "bilgi@urfahaber.net";
$recipient_array["Yonetim"] = "bilgi@urfahaber.net";
$recipient_array["Şikayet"] = "bilgi@urfahaber.net";
$recipient_array["Öneri"] = "bilgi@urfahaber.net";
////////////////////////////////////////////////////////////////////////////////////
// Do Not Edit Below Here Unless You Know What You Are Doing
////////////////////////////////////////////////////////////////////////////////////
if ($_POST["send"] == "true") {
$to = $_POST["to"];
$name = $_POST["name"];
$email = $_POST["email"];
$the_subject = $_POST["subject"];
$message = $_POST["message"];
if (($name == "") OR ($email == "") OR ($message == "")) {
print ("");
print ("
Aşağıdaki Form Alanlarından Birini Boş Bıraktınız
Lütfen Doldurunuz.
");
print ("
");
email_form();
} elseif (ereg("([[:alnum:]\.\-]+)(\@[[:alnum:]\.\-]+\.+)", $email)) {
$recipient = $to;
$subject = $the_subject;
$additional_headers = ("From: $email\n");
$body = ("Name: $name\nEmail: $email\n\nMessage:\n\n" . $message);
if (mail($recipient, $subject, $body, $additional_headers)) {
print ("");
print ("
$recipient.
E-Postanız Başarı İle Alınmıştır.
Teşekkür Ederiz / URFA HABER ");
print ("
");
} else {
print ("");
print ("
Üzgünüz..
Formu Eksik Doldurdunuz. Eksik Bilgileri Gözden Geçirip Düzeltiniz.
");
print ("
");
$send = "false";
email_form();
}
} else {
print ("");
print ("Lütfen Geçerli, Kullandığınız Bir E-Posta Adresi Giriniz
");
print ("
");
$send = "false";
email_form();
}
} else {
print ("");
print ("
Aşağıdaki Formu Kullanarak Bize Ulaşabilirsiniz
Kime (Seçiniz)");
print ("
");
email_form();
}
function email_form()
{
global $subject_array, $recipient_array, $this_script, $PHP_SELF;
print ("");
print ("\n");
print ("
");
}
? >