if (!empty($_POST["name"]))
- здесь вы проверяете переменную на существование (isset)и не-пустоту.if ($name and $phone and $message)
Select the text that you want to format, or press Ctrl+A to select all of the text in the current document.
Press Shift+Alt+F to open the "Format Document" window.
Select "PHP" or "HTML" from the dropdown menu, depending on the type of code you are formatting.