Files
php_8/forms/form_first_handler.php
2022-05-09 08:28:05 +03:00

8 lines
260 B
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
// Если поле first не заполнено, выводим сообщение об ошибке
if (empty($_POST['first'])) {
exit('Текстовое поле не заполнено');
} else {
echo htmlspecialchars($_POST['first']);
}