<?php
$email_to = 'lttasap@yandex.ru';
$medname = htmlspecialchars ($_POST['medname']);
$docname = htmlspecialchars ($_POST['docname']);
$rank = htmlspecialchars ($_POST['rank']);
$docplan = htmlspecialchars ($_POST['docplan']);
$headers = "From: $email\r\n";
$headers .= "Reply-To: $email\r\n";
if(mail($email_to, $medname, $docname, $rank, $docplan)){
echo 'sent';
}else{
echo 'failed';
}
?>
<select id="docPlan" class="form-control btn-group-lg selectpicker" name="docplan" data-style="btn-empty">
<option value="" disabled selected>Выберите набор</option>
<option value="basic">Базовый - 500 руб.</option>
<option value="standart">Стандартный - 1000 руб.</option>
<option value="advance">Премиум - 2000 руб.</option>
</select>