if(!empty($_POST['name'])){$name = strip_tags(trim($_POST['name']));}
if(!empty($_POST['email'])){$email = strip_tags(trim($_POST['email']));}
if(!empty($_POST['skype'])){$skype = strip_tags(trim($_POST['skype']));}
if(!empty($_POST['sms'])){$sms = strip_tags(trim($_POST['sms']));}
value="<?=$_POST['name'] ?? '' ?>"
if(isset($_POST['name'])){
$name = strip_tags(trim($_POST['name']));
}
if(!empty($_POST['email'])){
$email = strip_tags(trim($_POST['email']));
}
if($_GET['name'] != ''){
$name = strip_tags(trim($_POST['name']));
}
<?php
$to = 'a.kovalkovsky@gmail.com';
$tema = 'Новое сообщение';
if(!empty($_POST['name'])){$name = strip_tags(trim($_POST['name']));}
if(!empty($_POST['email'])){$email = strip_tags(trim($_POST['email']));}
if(!empty($_POST['skype'])){$skype = strip_tags(trim($_POST['skype']));}
if(!empty($_POST['sms'])){$sms = strip_tags(trim($_POST['sms']));}
$message = "Имя пользователя: ".$name."\r\n";
$message .= "Почта: ".$email."\r\n";
$message .= "Skype: ".$skype."\r\n";
$message .= "Сообщение: ".$sms."\r\n";
$tema = "=?utf-8?B?".base64_encode($subject)."?=";
$headers = "From: $from\r\nReply-to: $from\r\nContent-type:text/plain; charset=utf-8\r\n";
mail($to, $tema, $message, $headers);