<?php
$kime="admin_tr_06@hotmail.com";
$konu="formdan gelen bilgi";
$isim = $_POST['isim'];
$soyad = $_POST['soyad'];
$email = $_POST['email'];
$ileti = $_POST['ileti'];
$konux = $_POST['konux'];
if( empty($isim) || empty($soyad) || empty($email) || empty($ileti) || empty($konux)){
echo'
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1254">
</head>
<body>
<p> </p>
<p> <a href="index.htm">
<img border="0" src="hata.jpg" width="560" height="262"></a></p>
</body>
</html>
</center>';
}
else{
$gorus ="İsim: $isim soyad: $soyad KONU: $konux ileti: $ileti email: $email";
if (mail($kime, $konu, $gorus)){
echo'
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1254">
</head>
<body>
<p> </p>
<p> <a href="index.htm">
<img border="0" src="dogru.jpg" width="560" height="210"></a></p>
</body>
</html>
<tr>
<td>
</td></tr>
</table>';
}
else{
echo'
';
}
}
?>
|