I can not understand what the error is, the selected select value is not sent, tell experts, please.
<form action="/mail.php" method="post" onsubmit="return checkForm(this);"> Ваше имя:<br> <input type="text" name="name" size="50"> <br> Ваш E-mail:<br> <input name="email" type="text" size="50"> <br> Ваше сообщение:<br> <textarea name="mess" id="textarea" font="" rows="10" cols="50"></textarea> <p> Выбрать:<br> <select name="select"> <option value="1">1</option> <option value="2">2</option> <option value="3">3</option> </select> <input type="submit" value="Отправить сообщение"> </p> </form> <?php if (isset($_POST['name'])) {$name = $_POST['name'];} if (isset($_POST['email'])) {$email = $_POST['email'];} if (isset($_POST['mess'])) {$mess = $_POST['mess'];} if (isset($_POST['select'])) {$mess = $_POST['select'];} $to = "i@i.com"; $headers = "Content-type: text/plain; charset = UTF-8"; $subject = "Подписка"; $message = "Имя пославшего: $name \nЭлектронный адрес: $email \nСообщение: $mess \nТип: $select"; $send = mail ($to, $subject, $message, $headers); if ($send == 'true') { echo "<b>Спс!<p>"; } else { echo "<p><b>Ошибка"; } ?>
/mail.phpfile at the specified path/mail.phpexist? Is the path correct? - n.osennij