<?
if (array_key_exists('nameFF', $_POST)) {
$to = 'medvedi-optom@ukr.net';
$subject = ' '.$_SERVER['HTTP_REFERER'];
$subject = "=?utf-8?b?". base64_encode($subject) ."?=";
$message = "Name: ".$_POST['nameFF']."\nPhone: ".$_POST['phoneFF']."\nRazmer: ".$_POST['razmerFF']."\nCvet: ".$_POST['cvetFF']."\n\n ".$_POST['messageFF'];
$headers = 'Content-type: text/plain; charset="utf-8"';
$headers .= "MIME-Version: 1.0\r\n";
$headers .= "Date: ". date('D, d M Y h:i:s O') ."\r\n";
mail($to, $subject, $message, $headers);
echo $_POST['nameFF'];
}
?>