There is such a form, but it does not work, what's the problem?
<?php if(isset($_POST['firstname']) && isset($_POST['comment'])) { $name = htmlentities($_POST['firstname']); $secondname = htmlentities($_POST['secondname']); $comment = htmlentities($_POST['text']); $output =" <html> <head> <title>ΠΠ½ΠΊΠ΅ΡΠ½ΡΠ΅ Π΄Π°Π½Π½ΡΠ΅</title> </head> <style> body{ background: #C5D2DB; font-family: Verdana, Geneva, sans-serif; font-size: 14px; font-weight: bold; text-align: center; } ul{ list-style-type: none; text-align: center; } container{ padding-top: 20px; } </style> <body> <container> ΠΠ°Ρ Π·ΠΎΠ²ΡΡ: $name<br /> ΠΠ°ΡΠ° ΡΠ°ΠΌΠΈΠ»ΠΈΡ: $secondname<br /> ΠΠ°Ρ ΠΊΠΎΠΌΠΌΠ΅Π½ΡΠ°ΡΠΈΠΉ: $comment<br /> </container></body></html>"; echo $output; } else { echo "ΠΠ²Π΅Π΄Π΅Π½Π½ΡΠ΅ Π΄Π°Π½Π½ΡΠ΅ Π½Π΅ΠΊΠΎΡΡΠ΅ΠΊΡΠ½Ρ"; } ?> <!DOCTYPE html> <html lang="ru"> <head> <meta charset="UTF-8"> <title>Anketa</title> <link rel="stylesheet" href="style.css"> </head> <body> <div class="container"> <h2>ΠΠ½ΠΊΠ΅ΡΠ° ΠΏΠ΅ΡΠ²ΠΎΠΊΡΡΡΠ½ΠΈΠΊΠ°</h2> <form action="input.php" method="POST"> <p>ΠΠ²Π΅Π΄ΠΈΡΠ΅ ΠΈΠΌΡ:<br> <input type="text" name="firstname" /></p> <p>ΠΠ²Π΅Π΄ΠΈΡΠ΅ ΡΠ°ΠΌΠΈΠ»ΠΈΡ:<br> <input type="text" name="secondname" /></p> <p>ΠΡΠ°ΡΠΊΠΈΠΉ ΠΊΠΎΠΌΠΌΠ΅Π½ΡΠ°ΡΠΈΠΉ: <br> <textarea name="comment" maxlength="200"></textarea></p> <input type="submit" value="ΠΡΠΏΡΠ°Π²ΠΈΡΡ"> </form> </div> </body> </html>