Answer the question
In order to leave comments, you need to log in
Are Cyrillic characters allowed in the name attribute in form fields - can there be problems?
Has anyone really tested how different browsers and servers with Russian-language field names behave when submitting forms to the server?
In one of my projects, it turned out to be very convenient to use Russian-language names in form fields, like this (very simplified example):
<?php
if ($_POST) {
$message= "";
foreach ($_POST as $filedLabel => $filedValue) {
$message.= "$filedLabel: $filedValue \n";
}
mail($adminEmail, 'Заявка с сайта', $message);
}
?>
<FORM method="post">
<input placeholder="Ваше имя" name="Имя"><br/>
<input placeholder="Ваш телефон" name="Телефон"><br/>
<textarea placeholder="Вопрос, комментарий, сообщение" name="Сообщение"></textarea><br/>
<button type="submit">Отправить</button>
</FORM>
Answer the question
In order to leave comments, you need to log in
and how will you access the attribute when processing the form, for example, through PHP?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question