hocam sana bir tane hazırladım.Çalışıyor...


<?php 
define("kContactEmail","ameail@adresin.com");


// init variables
$error_msg = 'İsaretli alanları doldurmadığınız taktirde mesajiniz ulaşmayacaktır.:<ul>';
$error = false;

// determine is the form was submitted
$submit = $_POST['submit'];
if (empty($submit)) 
$form_submitted = false;
else
$form_submitted = true;

if ($form_submitted) {
// read out data
$name = $_POST['name'];
$age = $_POST['age'];
$yerlesim = $_POST['yerlesim'];
$email = $_POST['email'];
$phone = $_POST['phone'];
$subject = $_POST['subject'];
$message = $_POST['message'];

// çekilen data
if(!$name) { $error_msg .= "<li>İsim</li>"; $error = true; }
if(!$age) { $error_msg .= "<li>Yaş</li>"; $error = true; }
if(!$yerlesim) { $error_msg .= "<li>Nerden</li>"; $error = true; }
if(!$email) { $error_msg .= "<li>E-Posta</li>"; $error = true; }
if(!$subject) { $error_msg .= "<li>Konu Basligi</li>"; $error = true; }
if(!$message) { $error_msg .= "<li>Mesajiniz</li>"; $error = true; }
if($email) { if(!eregi("^[a-z0-9_]+@[a-z0-9\-]+\.[a-z0-9\-\.]+$", $email)){ $error_msg .= "<li>E-mail Adresinizi Doğru Yazmadınız.</li>"; $error = true; }}
$error_msg .= "</ul>";

// hata 
if (!$error) {
// giden mail
$msg = "İsminiz: \t $name \n";
$msg = "Yasiniz: \t $age \n";
$msg = "Nerden: \t $yerlesim \n";
$msg .= "E-Posta Adresiniz: \t $email \n";
$msg .= "Telefon Numaraniz: \t $phone \n";
$msg .= "Mesajiniz: \n---\n $message \n---\n";

// ileti ayarları
$mailheaders = "MIME-Version: 1.0\r\n";
$mailheaders .= "Content-type: text/plain; charset=windows-1254\r\n";
$mailheaders .= "From: $name <$email>\r\n";
$mailheaders .= "Reply-To: $name <$email>\r\n"; 

// send out email
mail(kContactEmail, $subject ,stripslashes($msg), $mailheaders);
}
} 
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1254">
<title>FanClub Formu</title>
<style>
body{
margin-left:50px;
background-color:white;
}

.form{
color:black;
font-family:verdana;
font-size:10pt;
font-weight:bold;
}

.buton{
color:navy;
font-family:verdana;
font-size:10pt;
font-weight:bold;
border: 1px solid #000080; 
padding-left: 0; 
padding-right: 0; 
padding-top: 1px; 
padding-bottom: 1px
}

.yazi{
color:navy;
font-family:Courier New;
font-size:10pt;
}

</style>
</head>
<body>
<div id="form_box"> 
<table border="0" width="100%" cellpadding="0" cellspacing="0" height="470">
<tr>
<td class="main" valign="top">
<!-- page heading-->
<p>
<?php
// email gönderimi başarılıysa
if (($form_submitted) && (!$error)) {
?>
<!-- display submitted data -->
<br>İlginiz için teşekkür ederiz<br>Mesajiniz bize ulaşmıştır,<br><br>Sayın. <?php echo $name; ?>.
<br>Genel Bilgi:<br><br><?php echo nl2br(stripslashes($msg)); ?>
<?php 
}
// display contact form
else {
// display error message
if ($error) { 
echo "<font class='form_check'>" . $error_msg . "</font>\n";
} 
?>
<font color="#FF0000">(<font class="form_check">*</font>)<!-- display form information -->
İsaretli alanların doldurulmasi zorunludur.&nbsp;</font>&nbsp;
<!-- display form -->
</p>
<form action="<?php echo $PHP_SELF; ?>" method="post" name="contact">
<table border="0" width="100%" cellpacing="5" cellpadding="0" cellspacing="0">
<tr>
<td class="form" width="50%">
Ad - Soyad<font color="#FF0000"> (<font class="form_check">*</font>)</font><br>
<input name="name" type="text" class="yazi" value="<?php echo $name ?>" size="40">&nbsp;
</td>
</tr>
<tr>
<td class="form" width="50%">
Yasiniz<font color="#FF0000"> (<font class="form_check">*</font>)</font><br>
<input name="name" type="text" class="yazi" value="<?php echo $age ?>" size="40">&nbsp;
</td>
</tr>
<tr>
<td class="form" width="50%">
Nerden<font color="#FF0000"> (<font class="form_check">*</font>)</font><br>
<input name="name" type="text" class="yazi" value="<?php echo $yerlesim ?>" size="40">&nbsp;
</td>
</tr>
<tr>
<td class="form" width="50%">
Telefon <br>
<input name="phone" type="text" class="yazi" value="<?php echo $phone ?>" size="40">
</td>
</tr>
<tr>
<td class="form" width="50%">
E-Posta <font color="#FF0000">(<font class="form_check">*</font>)</font><br>
<input name="email" type="text" class="yazi" value="<?php echo $email ?>" size="40">&nbsp;
</td>
</tr>
<tr>
<td class="form" width="50%">
Konu&nbsp; <font color="#FF0000">(<font class="form_check">*</font>)</font><br>
<input name="subject" type="text" class="yazi" value="<?php echo $subject ?>" size="76">
</td>
</tr>
</table>
<table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr>
<td class="form">
Mesaj <font color="#FF0000">(<font class="form_check">*</font>)</font><br>
<textarea name="message" class="yazi" cols="74" rows="12"><?php echo $message ?></textarea>
</td>
</tr>
</table>
<table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr>
<td class="form">
<input class="buton" name="submit" type="submit" value="Mesajı Gönder">
</td>
</tr>
</table>
</form>
<?php
}
?>
</td>
</tr>
</table>
</div>
</body>
</html>